summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Grosser <development@stp-ip.net>2016-11-02 17:00:24 +0000
committerGitHub <noreply@github.com>2016-11-02 17:00:24 +0000
commite81d04cd8d2ac0de3d06d4586550469384c5d91a (patch)
tree0e243d105db3e00f1d3f899b9ecfbd73f3d98235 /core
parent23dd62b653e42201468f9bed369a5993dea876b0 (diff)
parent0eeef26a8e2515b802015fe09bef7909aa183491 (diff)
downloadnextcloud-server-e81d04cd8d2ac0de3d06d4586550469384c5d91a.tar.gz
nextcloud-server-e81d04cd8d2ac0de3d06d4586550469384c5d91a.zip
Merge pull request #1940 from nextcloud/new-appstore
Use new appstore API
Diffstat (limited to 'core')
-rw-r--r--core/Command/App/Enable.php5
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;