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->constructClasses();
$this->Components->trigger('initialize', array(&$this)); $this->Components->trigger('initialize', array(&$this));
$this->_set(array( $this->_set(array('cacheAction' => false, 'viewPath' => 'Errors'));
'cacheAction' => false,
'viewPath' => 'Errors',
'layout' => 'error'
));
if (isset($this->RequestHandler)) { if (isset($this->RequestHandler)) {
$this->RequestHandler->startup($this); $this->RequestHandler->startup($this);
} }

View file

@ -150,7 +150,6 @@ class ExceptionRenderer {
$controller = new CakeErrorController($request, $response); $controller = new CakeErrorController($request, $response);
} catch (Exception $e) { } catch (Exception $e) {
$controller = new Controller($request, $response); $controller = new Controller($request, $response);
$controller->layout = 'error';
$controller->viewPath = 'Errors'; $controller->viewPath = 'Errors';
} }
return $controller; return $controller;