Skip to content

Commit

Permalink
Fix plugin search in locations of UpgradeShell.
Browse files Browse the repository at this point in the history
  • Loading branch information
labianchin committed Jun 28, 2011
1 parent 7ceebfc commit 10be3fb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/Cake/Console/Command/UpgradeShell.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,23 @@ public function locations() {
$cwd = getcwd();

$pluginsFolders = App::path('plugins');
if (!$pluginsFolders)
if (!$pluginsFolders){
$pluginsFolders = array('plugins');
}

foreach ($pluginsFolders as $pluginsFolder){
if (is_dir($pluginsFolder)) {

$Folder = new Folder($pluginsFolder);
list($plugins) = $Folder->read();
foreach($plugins as $plugin) {
chdir($cwd . DS . $pluginsFolder . DS . $plugin);
foreach($plugins as $plugin) {
chdir($pluginsFolder . $plugin);
$this->locations();
}
$this->_files = array();
chdir($cwd);
}
}
$this->_files = array();
chdir($cwd);

$moves = array(
'libs' => 'Lib',
Expand Down

0 comments on commit 10be3fb

Please sign in to comment.