diff --git a/lib/Cake/Controller/CakeErrorController.php b/lib/Cake/Controller/CakeErrorController.php index dec129fd1..eecfb8386 100644 --- a/lib/Cake/Controller/CakeErrorController.php +++ b/lib/Cake/Controller/CakeErrorController.php @@ -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); } diff --git a/lib/Cake/Error/ExceptionRenderer.php b/lib/Cake/Error/ExceptionRenderer.php index ff1d25e69..3b8671254 100644 --- a/lib/Cake/Error/ExceptionRenderer.php +++ b/lib/Cake/Error/ExceptionRenderer.php @@ -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;