mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixin CakeErrorController's constructor, so it matches the parent class. Removing duplicated code.
This commit is contained in:
parent
0cc55d8f45
commit
ab4ce97cad
1 changed files with 2 additions and 4 deletions
|
@ -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'));
|
||||||
|
|
Loading…
Reference in a new issue