From 8d83e239f321ef63e08c2c1a6658449c7376c46f Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 27 Oct 2016 20:13:15 +0200 Subject: Fix tests Signed-off-by: Lukas Reschke --- core/Command/App/Enable.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/Command/App') 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; -- cgit v1.2.3