mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
fix for thtml custom missingView
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3976 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
9ad12b1f4e
commit
3bcf9e6044
1 changed files with 2 additions and 0 deletions
|
@ -313,6 +313,8 @@ class View extends Object {
|
|||
|
||||
if (file_exists(VIEWS . $viewDir . DS . $errorAction . $this->ext)) {
|
||||
$missingViewFileName = VIEWS . $viewDir . DS . $errorAction . $this->ext;
|
||||
} elseif (file_exists(VIEWS . $viewDir . DS . $errorAction . '.thtml')) {
|
||||
$missingViewFileName = VIEWS . $viewDir . DS . $errorAction . '.thtml';
|
||||
} elseif($missingViewFileName = fileExistsInPath(LIBS . 'view' . DS . 'templates' . DS . $viewDir . DS . $errorAction . '.ctp')) {
|
||||
} else {
|
||||
$missingViewFileName = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue