Fix rendering element from plugin controller.

Fixes #2661

Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
Majna 2012-03-08 22:00:57 +01:00 committed by mark_story
parent 0f2100767b
commit 17cbcf4406

View file

@ -954,7 +954,7 @@ class View extends Object {
$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;
}
}