Removing undefined variable use.

Making the plugin path match the old plugins directory.
This commit is contained in:
mark_story 2011-05-22 21:00:25 -04:00
parent 95a5b99b0e
commit 85752e21c1
2 changed files with 3 additions and 2 deletions

View file

@ -76,7 +76,7 @@ class PluginTask extends Shell {
} }
if (!$this->bake($plugin)) { 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) { public function bake($plugin) {
$pluginPath = Inflector::camelize($plugin); $pluginPath = Inflector::camelize($plugin);
$pathOptions = App::path('plugins'); $pathOptions = App::path('plugins');
var_dump($pathOptions);
if (count($pathOptions) > 1) { if (count($pathOptions) > 1) {
$this->findPath($pathOptions); $this->findPath($pathOptions);
} }

View file

@ -314,7 +314,7 @@ class App {
'vendors' => array('%s' . 'Vendor' . DS, VENDORS), 'vendors' => array('%s' . 'Vendor' . DS, VENDORS),
'plugins' => array( 'plugins' => array(
APP . 'Plugin' . DS, APP . 'Plugin' . DS,
APP . 'plugin' . DS, APP . 'plugins' . DS,
dirname(dirname(CAKE)) . DS . 'Plugin' . DS, dirname(dirname(CAKE)) . DS . 'Plugin' . DS,
) )
); );