Adding fix for #1556.

Errors are no longer cached

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3774 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-10-31 06:52:04 +00:00
parent f22dc77ea1
commit 19f5a9b677

View file

@ -65,8 +65,8 @@ class ErrorHandler extends Object{
}
$this->controller =& new AppController();
$this->controller->_initComponents();
$this->controller->cacheAction = false;
$this->__dispatch->start($this->controller);
if (method_exists($this->controller, 'apperror')) {
@ -74,6 +74,7 @@ class ErrorHandler extends Object{
}
} else {
$this->controller =& new Controller();
$this->controller->cacheAction = false;
}
if (DEBUG > 0 || $method == 'error') {
call_user_func_array(array(&$this, $method), $messages);