Skip to content

Commit

Permalink
Revert "Always use error layout when rendering error pages."
Browse files Browse the repository at this point in the history
This reverts commit 3495422.
  • Loading branch information
ADmad committed Apr 5, 2012
1 parent 72cb96b commit c6ce157
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions lib/Cake/Controller/CakeErrorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ public function __construct($request = null, $response = null) {
$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);
}
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Error/ExceptionRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ protected function _getController($exception) {
$controller = new CakeErrorController($request, $response);
} catch (Exception $e) {
$controller = new Controller($request, $response);
$controller->layout = 'error';
$controller->viewPath = 'Errors';
}
return $controller;
Expand Down

0 comments on commit c6ce157

Please sign in to comment.