Skip to content

Commit

Permalink
Fixing issue loading plugin models when uses == false.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 5, 2010
1 parent 9dd78c7 commit d202ea6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/libs/controller/controller.php
Expand Up @@ -476,9 +476,10 @@ public function constructClasses() {
} else {
$id = $this->passedArgs['0'];
}
$plugin = $this->plugin ? $this->plugin . '.' : null;

if ($this->uses === false) {
$this->loadModel($this->modelClass, $id);
$this->loadModel($plugin . $this->modelClass, $id);
} elseif ($this->uses) {
$uses = is_array($this->uses) ? $this->uses : array($this->uses);
list($plugin, $modelClassName) = pluginSplit($uses[0]);
Expand Down

0 comments on commit d202ea6

Please sign in to comment.