mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Revert "Always use error layout when rendering error pages."
This reverts commit 3495422ac5
.
This commit is contained in:
parent
72cb96b727
commit
c6ce15720e
2 changed files with 1 additions and 6 deletions
|
@ -56,11 +56,7 @@ class CakeErrorController extends AppController {
|
|||
$this->constructClasses();
|
||||
$this->Components->trigger('initialize', array(&$this));
|
||||
|
||||
$this->_set(array(
|
||||
'cacheAction' => false,
|
||||
'viewPath' => 'Errors',
|
||||
'layout' => 'error'
|
||||
));
|
||||
$this->_set(array('cacheAction' => false, 'viewPath' => 'Errors'));
|
||||
if (isset($this->RequestHandler)) {
|
||||
$this->RequestHandler->startup($this);
|
||||
}
|
||||
|
|
|
@ -150,7 +150,6 @@ class ExceptionRenderer {
|
|||
$controller = new CakeErrorController($request, $response);
|
||||
} catch (Exception $e) {
|
||||
$controller = new Controller($request, $response);
|
||||
$controller->layout = 'error';
|
||||
$controller->viewPath = 'Errors';
|
||||
}
|
||||
return $controller;
|
||||
|
|
Loading…
Reference in a new issue