mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Fixed missing view path for plugins, closes #4244
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6856 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7ee9c21079
commit
825eb48508
1 changed files with 11 additions and 1 deletions
|
@ -799,7 +799,17 @@ class View extends Object {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->_missingView($paths[0] . $name . $this->ext, 'missingView');
|
$defaultPath = $paths[0];
|
||||||
|
if ($this->plugin) {
|
||||||
|
$pluginPaths = Configure::read('pluginPaths');
|
||||||
|
foreach ($paths as $path) {
|
||||||
|
if (strpos($path, $pluginPaths[0]) === 0) {
|
||||||
|
$defaultPath = $path;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $this->_missingView($defaultPath . $name . $this->ext, 'missingView');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue