Adding fix for #2428 fixes View::renderElement() behavior with multiple view paths

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4908 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-04-29 03:33:37 +00:00
parent 86ebf5a471
commit 7cdb495068

View file

@ -396,8 +396,10 @@ class View extends Object {
foreach($viewPaths as $path) {
if(file_exists($path . 'elements' . DS . $name . $this->ext)) {
$file = $path . 'elements' . DS . $name . $this->ext;
break;
} else if(file_exists($path . 'elements' . DS . $name . '.thtml')) {
$file = $path . 'elements' . DS . $name . '.thtml';
break;
}
}