Fixin CakeErrorController's constructor, so it matches the parent class. Removing duplicated code.

This commit is contained in:
mark_story 2011-03-10 22:00:08 -05:00
parent 0cc55d8f45
commit ab4ce97cad

View file

@ -22,10 +22,8 @@ class CakeErrorController extends AppController {
* @access public * @access public
* @return void * @return void
*/ */
function __construct() { function __construct($request = null) {
parent::__construct(); parent::__construct($request);
$this->_set(Router::getPaths());
$this->request = Router::getRequest(false);
$this->constructClasses(); $this->constructClasses();
$this->Components->trigger('initialize', array(&$this)); $this->Components->trigger('initialize', array(&$this));
$this->_set(array('cacheAction' => false, 'viewPath' => 'errors')); $this->_set(array('cacheAction' => false, 'viewPath' => 'errors'));