diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-02-16 16:44:51 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-02-17 15:05:29 +0100 |
commit | e672f8cc8ff046d847b1a3eaaf9fbc8159fa59f3 (patch) | |
tree | 5fea780cf65934b082b4078513221b158bfa78cc /lib | |
parent | 5394a81c05e610b28aae0ebcf5a59c8470b49266 (diff) | |
download | nextcloud-server-e672f8cc8ff046d847b1a3eaaf9fbc8159fa59f3.tar.gz nextcloud-server-e672f8cc8ff046d847b1a3eaaf9fbc8159fa59f3.zip |
Use appmanager in OC_App::enable/disable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/app.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index 2e640aa2a40..3f7e46dccd7 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -261,10 +261,11 @@ class OC_App { $app = self::installApp($app); } + $appManager = \OC::$server->getAppManager(); if (!is_null($groups)) { - OC_Appconfig::setValue($app, 'enabled', json_encode($groups)); + $appManager->enableAppForGroups($app, $groups); } else { - OC_Appconfig::setValue($app, 'enabled', 'yes'); + $appManager->enableApp($app); } } @@ -308,7 +309,8 @@ class OC_App { self::$enabledAppsCache = array(); // flush // check if app is a shipped app or not. if not delete \OC_Hook::emit('OC_App', 'pre_disable', array('app' => $app)); - OC_Appconfig::setValue($app, 'enabled', 'no'); + $appManager = \OC::$server->getAppManager(); + $appManager->disableApp($app); } /** |