summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-10-27 20:13:15 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-10-31 17:17:45 +0100
commit8d83e239f321ef63e08c2c1a6658449c7376c46f (patch)
tree277603816fcc000d008be6c7ac84c108300b4d9b /core
parent32cf661215fb3926789054a3953b465fc2665330 (diff)
downloadnextcloud-server-8d83e239f321ef63e08c2c1a6658449c7376c46f.tar.gz
nextcloud-server-8d83e239f321ef63e08c2c1a6658449c7376c46f.zip
Fix tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
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;