mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +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
|
||||
* @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'));
|
||||
|
|
Loading…
Reference in a new issue