Fixed missing view path for plugins, closes #4244

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6856 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
the_undefined 2008-05-13 22:18:30 +00:00
parent 7ee9c21079
commit 825eb48508

View file

@ -799,7 +799,17 @@ class View extends Object {
} }
} }
return $this->_missingView($paths[0] . $name . $this->ext, 'missingView'); $defaultPath = $paths[0];
if ($this->plugin) {
$pluginPaths = Configure::read('pluginPaths');
foreach ($paths as $path) {
if (strpos($path, $pluginPaths[0]) === 0) {
$defaultPath = $path;
break;
}
}
}
return $this->_missingView($defaultPath . $name . $this->ext, 'missingView');
} }
/** /**