mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fix rendering element from plugin controller.
Fixes #2661 Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
parent
0f2100767b
commit
17cbcf4406
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue