From 7032e43b923e2866a43c8d53fa7c33a9175a0024 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Thu, 26 Feb 2015 23:14:08 +1100 Subject: [PATCH] Fixes weird issue when a folder named '/files' in the base path kills the CMS --- modules/system/traits/ViewMaker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system/traits/ViewMaker.php b/modules/system/traits/ViewMaker.php index c45d29e73..4332c9134 100644 --- a/modules/system/traits/ViewMaker.php +++ b/modules/system/traits/ViewMaker.php @@ -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])); }