Fixes weird issue when a folder named '/files' in the base path kills the CMS

This commit is contained in:
Samuel Georges 2015-02-26 23:14:08 +11:00
parent e487f075c4
commit 7032e43b92
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ trait ViewMaker
$partialPath = $this->getViewPath($partial);
if (!File::isFile($partialPath)) {
if (!File::exists($partialPath)) {
if ($throwException) {
throw new SystemException(Lang::get('backend::lang.partial.not_found', ['name' => $partialPath]));
}
@ -115,7 +115,7 @@ trait ViewMaker
$layoutPath = $this->getViewPath($layout . '.htm', $this->layoutPath);
if (!File::isFile($layoutPath)) {
if (!File::exists($layoutPath)) {
if ($throwException) {
throw new SystemException(Lang::get('cms::lang.layout.not_found', ['name' => $layoutPath]));
}