Fix variable naming.

This commit is contained in:
mark_story 2012-10-04 11:27:24 -04:00
parent 1c0492eb8b
commit 57f81da983

View file

@ -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;