summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/app.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-07-23 10:28:47 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-08-15 11:12:45 +0200
commit810ee7d811c4cf0291add770cb89e5b6d11104b9 (patch)
tree329b6656be47cfeca48239722b55df0a8a1e4bc4 /lib/private/legacy/app.php
parentf6c34240395bd53e160bdc8bac10e504451553b8 (diff)
downloadnextcloud-server-810ee7d811c4cf0291add770cb89e5b6d11104b9.tar.gz
nextcloud-server-810ee7d811c4cf0291add770cb89e5b6d11104b9.zip
Make the auto-disabled list more broad
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/legacy/app.php')
-rw-r--r--lib/private/legacy/app.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index d495bef2ebd..58b617aae45 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -70,7 +70,6 @@ class OC_App {
static private $loadedApps = [];
static private $altLogin = [];
static private $alreadyRegistered = [];
- static public $autoDisabledApps = [];
const supportedApp = 300;
const officialApp = 200;
@@ -157,8 +156,7 @@ class OC_App {
\OC::$server->getLogger()->logException($ex);
if (!\OC::$server->getAppManager()->isShipped($app)) {
// Only disable apps which are not shipped
- \OC::$server->getAppManager()->disableApp($app);
- self::$autoDisabledApps[] = $app;
+ \OC::$server->getAppManager()->disableApp($app, true);
}
}
\OC::$server->getEventLogger()->end('load_app_' . $app);