From 027c316c9af11e551eda79f20da15bad57b89558 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Wed, 30 Mar 2016 00:45:06 +0200 Subject: [PATCH] Fixes stupid regressions --- src/View.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/View.php b/src/View.php index ef8f7fd..4d2e105 100644 --- a/src/View.php +++ b/src/View.php @@ -243,6 +243,8 @@ class View { }*/ + $all_path[]=$view_real_path; + if(is_file($view_real_path)) { @@ -267,7 +269,7 @@ class View { else { - throw new \Exception('Error: view not found: '.implode(' and ', $all_path).' and cached templates '.implode(' and ', $all_cache_path)); + throw new \Exception('Error: view not found: '.implode(' and ', $all_path)); die; } @@ -281,7 +283,7 @@ class View { if(!function_exists($func_view)) { - throw new \Exception('Error: Template file loaded but function '.$func_view.' not found: '.implode(' and ', $all_path).' and cached templates '.implode(' and ', $all_cache_path)); + throw new \Exception('Error: Template file loaded but function '.$func_view.' not found: '.implode(' and ', $all_path)); die; }