mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-10 13:32:44 +00:00
Adding new methods to Configure and moving all core messages using DEBUG to use Configure::read()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4069 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b72ab690d4
commit
9ca5e14891
11 changed files with 172 additions and 24 deletions
|
@ -76,7 +76,7 @@ class ErrorHandler extends Object{
|
|||
$this->controller =& new Controller();
|
||||
$this->controller->cacheAction = false;
|
||||
}
|
||||
if (DEBUG > 0 || $method == 'error') {
|
||||
if (Configure::read() > 0 || $method == 'error') {
|
||||
call_user_func_array(array(&$this, $method), $messages);
|
||||
} else {
|
||||
call_user_func_array(array(&$this, 'error404'), $messages);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue