Merge pull request #7887 from nextcloud/backport/7879/dont-disable-shipped-apps-on-errors

[stable13] Keep all shipped apps enabled because they should be okay
This commit is contained in:
Morris Jobke 2018-01-16 21:52:36 +01:00 committed by GitHub
commit 7ea3623cd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}