Fixes stupid regressions
This commit is contained in:
parent
a9a440582b
commit
027c316c9a
1 changed files with 4 additions and 2 deletions
|
|
@ -243,6 +243,8 @@ class View {
|
||||||
|
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
$all_path[]=$view_real_path;
|
||||||
|
|
||||||
if(is_file($view_real_path))
|
if(is_file($view_real_path))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -267,7 +269,7 @@ class View {
|
||||||
else
|
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;
|
die;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -281,7 +283,7 @@ class View {
|
||||||
if(!function_exists($func_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;
|
die;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue