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

This commit is contained in:
Taylor Otwell 2011-07-26 15:31:10 -05:00
parent 4ed6d488ca
commit a4e8375feb
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}