Make file locations work better from global install.

This commit is contained in:
woutersioen
2014-07-16 15:52:23 +02:00
parent ec29aa37b8
commit c7e1175e11
13 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ class ListCommand extends AbstractCommand
protected function listEnvironments()
{
$environments = array();
$content = scandir('.mage/config/environment/');
$content = scandir(getcwd() . '/.mage/config/environment/');
foreach ($content as $file) {
if (strpos($file, '.yml') !== false) {
$environments[] = str_replace('.yml', '', $file);
@@ -73,4 +73,4 @@ class ListCommand extends AbstractCommand
Console::output('<dark_gray>You don\'t have any environment configured.</dark_gray>', 1, 2);
}
}
}
}