Revert "Always use error layout when rendering error pages."

This reverts commit 3495422ac5.
This commit is contained in:
ADmad 2012-04-06 00:47:50 +05:30
parent 72cb96b727
commit c6ce15720e
2 changed files with 1 additions and 6 deletions

View file

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

View file

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