From d202ea643d213d519c9388b1ea47fed803098cff Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 4 Dec 2010 23:49:00 -0500 Subject: [PATCH] Fixing issue loading plugin models when uses == false. --- cake/libs/controller/controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cake/libs/controller/controller.php b/cake/libs/controller/controller.php index d4341655b..b51770eb7 100644 --- a/cake/libs/controller/controller.php +++ b/cake/libs/controller/controller.php @@ -476,9 +476,10 @@ class Controller extends Object { } 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]);