diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/Command/App/Enable.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Command/App/Enable.php b/core/Command/App/Enable.php index 19f24d82e43..4aa38cd6f8f 100644 --- a/core/Command/App/Enable.php +++ b/core/Command/App/Enable.php @@ -75,11 +75,12 @@ class Enable extends Command implements CompletionAwareInterface { } $groups = $input->getOption('groups'); + $appClass = new \OC_App(); if (empty($groups)) { - \OC_App::enable($appId); + $appClass->enable($appId); $output->writeln($appId . ' enabled'); } else { - \OC_App::enable($appId, $groups); + $appClass->enable($appId, $groups); $output->writeln($appId . ' enabled for groups: ' . implode(', ', $groups)); } return 0; |