diff options
author | Tobia De Koninck <tobia@ledfan.be> | 2018-02-13 08:03:06 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-03-06 10:45:20 +0100 |
commit | 55b9a5d88689f41fa6ae7f7858bc800a495f4b74 (patch) | |
tree | b4edb7fa260532f19267d9e03b11e01dd26cd4e6 /lib/private/legacy | |
parent | 539fdaea1efa7fa35b321031554af8703d00737c (diff) | |
download | nextcloud-server-55b9a5d88689f41fa6ae7f7858bc800a495f4b74.tar.gz nextcloud-server-55b9a5d88689f41fa6ae7f7858bc800a495f4b74.zip |
Remove OC_App::disable method
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/app.php | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php index eba29d27cf8..303afa797dc 100644 --- a/lib/private/legacy/app.php +++ b/lib/private/legacy/app.php @@ -154,7 +154,7 @@ class OC_App { \OC::$server->getLogger()->logException($ex); if (!\OC::$server->getAppManager()->isShipped($app)) { // Only disable apps which are not shipped - self::disable($app); + \OC::$server->getAppManager()->disableApp($app); } } if (self::isType($app, array('authentication'))) { @@ -422,20 +422,6 @@ class OC_App { } /** - * This function set an app as disabled in appconfig. - * - * @param string $app app - * @throws Exception - */ - public static function disable(string $app) { - // flush - self::$enabledAppsCache = []; - - $appManager = \OC::$server->getAppManager(); - $appManager->disableApp($app); - } - - /** * Get the path where to install apps * * @return string|false |