mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Correcting loading of plugin view classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5218 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
537f28878d
commit
cdf9c0bc43
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@
|
||||||
function loadView($viewClass) {
|
function loadView($viewClass) {
|
||||||
if(strpos($viewClass, '.') !== false){
|
if(strpos($viewClass, '.') !== false){
|
||||||
list($plugin, $viewClass) = explode('.', $viewClass);
|
list($plugin, $viewClass) = explode('.', $viewClass);
|
||||||
$file = APP . 'plugins' . DS . $plugin . DS . 'views' . DS . Inflector::underscore($viewClass) . '.php';
|
$file = APP . 'plugins' . DS . Inflector::underscore($plugin) . DS . 'views' . DS . Inflector::underscore($viewClass) . '.php';
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
require($file);
|
require($file);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue