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
* @return void
*/
function __construct() {
parent::__construct();
$this->_set(Router::getPaths());
$this->request = Router::getRequest(false);
function __construct($request = null) {
parent::__construct($request);
$this->constructClasses();
$this->Components->trigger('initialize', array(&$this));
$this->_set(array('cacheAction' => false, 'viewPath' => 'errors'));