Permalink
Browse files

Fix rendering element from plugin controller.

Fixes #2661

Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information...
1 parent 0f21007 commit 17cbcf44066583dcb877edc9f7e334c70d99c3f6 @majna majna committed with markstory Mar 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/View.php
View
@@ -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;
}
}

0 comments on commit 17cbcf4

Please sign in to comment.