mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix variable naming.
This commit is contained in:
parent
1c0492eb8b
commit
57f81da983
1 changed files with 3 additions and 3 deletions
|
@ -116,11 +116,11 @@ class ExceptionRenderer {
|
|||
}
|
||||
}
|
||||
|
||||
$isDebug = (Configure::read('debug') == 0);
|
||||
if ($isDebug && $method == '_cakeError') {
|
||||
$isNotDebug = (Configure::read('debug') == 0);
|
||||
if ($isNotDebug && $method == '_cakeError') {
|
||||
$method = 'error400';
|
||||
}
|
||||
if ($isDebug && $code == 500) {
|
||||
if ($isNotDebug && $code == 500) {
|
||||
$method = 'error500';
|
||||
}
|
||||
$this->template = $template;
|
||||
|
|
Loading…
Reference in a new issue