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:
phpnut 2007-04-12 07:38:25 +00:00
parent e6f519a0a8
commit 8170b1f89f

View file

@ -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);