Permalink
Browse files

Removing undefined variable use.

Making the plugin path match the old plugins directory.
  • Loading branch information...
1 parent 95a5b99 commit 85752e21c158958092640c5d250487ccc1adc700 @markstory markstory committed May 23, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −1 lib/Cake/Console/Command/Task/PluginTask.php
  2. +1 −1 lib/Cake/Core/App.php
@@ -76,7 +76,7 @@ protected function _interactive($plugin = null) {
}
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 @@ protected function _interactive($plugin = null) {
public function bake($plugin) {
$pluginPath = Inflector::camelize($plugin);
$pathOptions = App::path('plugins');
+ var_dump($pathOptions);
if (count($pathOptions) > 1) {
$this->findPath($pathOptions);
}
View
@@ -314,7 +314,7 @@ public static function build($paths = array(), $mode = App::PREPEND) {
'vendors' => array('%s' . 'Vendor' . DS, VENDORS),
'plugins' => array(
APP . 'Plugin' . DS,
- APP . 'plugin' . DS,
+ APP . 'plugins' . DS,
dirname(dirname(CAKE)) . DS . 'Plugin' . DS,
)
);

0 comments on commit 85752e2

Please sign in to comment.