FIX: fix determination of invalid template
This commit is contained in:
@@ -32,12 +32,12 @@ class Template
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($throwExceptions) {
|
if (is_null($view)) {
|
||||||
if (is_null($view)) {
|
if ($throwExceptions) {
|
||||||
throw new InvalidArgumentException('Cannot find template for ' . $namespace . $template);
|
throw new InvalidArgumentException('Cannot find template for ' . $namespace . $template);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
|||||||
Reference in New Issue
Block a user