mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
f22dc77ea1
commit
19f5a9b677
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue