diff --git a/lib/Cake/Console/Command/Task/ControllerTask.php b/lib/Cake/Console/Command/Task/ControllerTask.php index 86b21e503..bfc38a5c0 100644 --- a/lib/Cake/Console/Command/Task/ControllerTask.php +++ b/lib/Cake/Console/Command/Task/ControllerTask.php @@ -48,7 +48,7 @@ class ControllerTask extends BakeTask { * */ public function initialize() { - $this->path = App::path('Controller'); + $this->path = current(App::path('Controller')); } /** diff --git a/lib/Cake/Console/Command/Task/ModelTask.php b/lib/Cake/Console/Command/Task/ModelTask.php index 9aa5df18a..06bb17d3a 100644 --- a/lib/Cake/Console/Command/Task/ModelTask.php +++ b/lib/Cake/Console/Command/Task/ModelTask.php @@ -74,7 +74,7 @@ class ModelTask extends BakeTask { * */ public function initialize() { - $this->path = App::path('Model'); + $this->path = current(App::path('Model')); } /** diff --git a/lib/Cake/Console/Command/Task/PluginTask.php b/lib/Cake/Console/Command/Task/PluginTask.php index 7e2c7fa0b..450dc7cb1 100644 --- a/lib/Cake/Console/Command/Task/PluginTask.php +++ b/lib/Cake/Console/Command/Task/PluginTask.php @@ -41,7 +41,7 @@ class PluginTask extends Shell { * @return void */ function initialize() { - $this->path = APP . 'Plugin' . DS; + $this->path = current(App::path('Plugin')); } /** diff --git a/lib/Cake/Console/Command/Task/ViewTask.php b/lib/Cake/Console/Command/Task/ViewTask.php index 70ec49101..7aad0c1f5 100644 --- a/lib/Cake/Console/Command/Task/ViewTask.php +++ b/lib/Cake/Console/Command/Task/ViewTask.php @@ -89,7 +89,7 @@ class ViewTask extends BakeTask { * */ public function initialize() { - $this->path = App::path('View'); + $this->path = current(App::path('View')); } /**