Skip to content

Commit

Permalink
Fix rendering element from plugin controller.
Browse files Browse the repository at this point in the history
Fixes #2661

Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information
majna authored and markstory committed Apr 14, 2012
1 parent 0f21007 commit 17cbcf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/View.php
Expand Up @@ -954,7 +954,7 @@ protected function _getViewFileName($name = null) {
$name = trim($name, DS);
} elseif ($name[0] === '.') {
$name = substr($name, 3);
} elseif (!$plugin) {
} elseif (!$plugin || $this->viewPath !== $this->name) {
$name = $this->viewPath . DS . $subDir . $name;
}
}
Expand Down

0 comments on commit 17cbcf4

Please sign in to comment.