diff --git a/lib/Cake/Console/Command/Task/PluginTask.php b/lib/Cake/Console/Command/Task/PluginTask.php index b968c850f..62fb5e0f4 100644 --- a/lib/Cake/Console/Command/Task/PluginTask.php +++ b/lib/Cake/Console/Command/Task/PluginTask.php @@ -76,7 +76,7 @@ class PluginTask extends Shell { } if (!$this->bake($plugin)) { - $this->error(__d('cake_console', "An error occured trying to bake: %s in %s", $plugin, $this->path . Inflector::camelize($pluginPath))); + $this->error(__d('cake_console', "An error occured trying to bake: %s in %s", $plugin, $this->path . Inflector::camelize($plugin))); } } @@ -90,6 +90,7 @@ class PluginTask extends Shell { public function bake($plugin) { $pluginPath = Inflector::camelize($plugin); $pathOptions = App::path('plugins'); + var_dump($pathOptions); if (count($pathOptions) > 1) { $this->findPath($pathOptions); } diff --git a/lib/Cake/Core/App.php b/lib/Cake/Core/App.php index 0ddc49257..c816b74dd 100644 --- a/lib/Cake/Core/App.php +++ b/lib/Cake/Core/App.php @@ -314,7 +314,7 @@ class App { 'vendors' => array('%s' . 'Vendor' . DS, VENDORS), 'plugins' => array( APP . 'Plugin' . DS, - APP . 'plugin' . DS, + APP . 'plugins' . DS, dirname(dirname(CAKE)) . DS . 'Plugin' . DS, ) );