mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 17:42:41 +00:00
Correcting [4849], would attempt to load non existent model is var $uses was not set
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4850 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
e6f519a0a8
commit
8170b1f89f
1 changed files with 3 additions and 1 deletions
|
@ -65,8 +65,10 @@ class ErrorHandler extends Object{
|
|||
}
|
||||
|
||||
$this->controller =& new AppController();
|
||||
if(!empty($this->controller->uses)) {
|
||||
$this->controller->constructClasses();
|
||||
}
|
||||
$this->controller->_initComponents();
|
||||
$this->controller->constructClasses();
|
||||
$this->controller->cacheAction = false;
|
||||
$this->__dispatch->start($this->controller);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue