Commit a4e8375f by Taylor Otwell

Use view path constants in view->find() method.

parent 4ed6d488
...@@ -103,11 +103,11 @@ class View { ...@@ -103,11 +103,11 @@ class View {
*/ */
protected function find() protected function find()
{ {
if (file_exists($path = APP_PATH.'views/'.$this->view.EXT)) if (file_exists($path = VIEW_PATH.$this->view.EXT))
{ {
return $path; return $path;
} }
elseif (file_exists($path = SYS_PATH.'views/'.$this->view.EXT)) elseif (file_exists($path = SYS_VIEW_PATH.$this->view.EXT))
{ {
return $path; return $path;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment