summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-16 13:36:45 +0100
committerGitHub <noreply@github.com>2018-01-16 13:36:45 +0100
commit9a99fc062375f23dca7d210365e6f54984dd144e (patch)
tree2d10c651aa15ba9a53e27f98cdc2612d138cbddc
parent4ae04c3d6331a28e146e9cb2b961c7731fb1217d (diff)
parentc95890f9b0481680d992a0296173cb4185ad5593 (diff)
downloadnextcloud-server-9a99fc062375f23dca7d210365e6f54984dd144e.tar.gz
nextcloud-server-9a99fc062375f23dca7d210365e6f54984dd144e.zip
Merge pull request #7879 from nextcloud/bugfix/7865/dont-disable-shipped-apps-on-errors
Keep all shipped apps enabled because they should be okay
-rw-r--r--lib/private/legacy/app.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 8114895416b..a20a88ac08f 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -236,8 +236,8 @@ class OC_App {
require_once $app . '/appinfo/app.php';
} catch (Error $ex) {
\OC::$server->getLogger()->logException($ex);
- $blacklist = \OC::$server->getAppManager()->getAlwaysEnabledApps();
- if (!in_array($app, $blacklist)) {
+ if (!\OC::$server->getAppManager()->isShipped($app)) {
+ // Only disable apps which are not shipped
self::disable($app);
}
}