mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding fix in loadView().
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3311 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
8b69475c08
commit
6b8e11fe2c
1 changed files with 7 additions and 6 deletions
|
@ -127,13 +127,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (file_exists(LIBS . 'view' . DS . $file)) {
|
||||
return require(LIBS . 'view' . DS . $file);
|
||||
} else {
|
||||
return false;
|
||||
if ($viewFile = fileExistsInPath(LIBS . 'view' . DS . $file)) {
|
||||
if (file_exists($viewFile)) {
|
||||
require($viewFile);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue