Correcting loading of plugin view classes

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5218 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-05-29 13:21:22 +00:00
parent 537f28878d
commit cdf9c0bc43

View file

@ -120,7 +120,7 @@
function loadView($viewClass) {
if(strpos($viewClass, '.') !== false){
list($plugin, $viewClass) = explode('.', $viewClass);
$file = APP . 'plugins' . DS . $plugin . DS . 'views' . DS . Inflector::underscore($viewClass) . '.php';
$file = APP . 'plugins' . DS . Inflector::underscore($plugin) . DS . 'views' . DS . Inflector::underscore($viewClass) . '.php';
if (file_exists($file)) {
require($file);
return true;