From a4e8375febaa45cb89461a8e3f70b1d93360e07e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 26 Jul 2011 15:31:10 -0500 Subject: [PATCH] Use view path constants in view->find() method. --- system/view.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/view.php b/system/view.php index 798e7f6b..5db1345a 100644 --- a/system/view.php +++ b/system/view.php @@ -103,11 +103,11 @@ public function get() */ protected function find() { - if (file_exists($path = APP_PATH.'views/'.$this->view.EXT)) + if (file_exists($path = VIEW_PATH.$this->view.EXT)) { return $path; } - elseif (file_exists($path = SYS_PATH.'views/'.$this->view.EXT)) + elseif (file_exists($path = SYS_VIEW_PATH.$this->view.EXT)) { return $path; }