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:
dho 2006-12-05 09:49:59 +00:00
parent b72ab690d4
commit 9ca5e14891
11 changed files with 172 additions and 24 deletions

View file

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