Merge pull request #5127 from nextcloud/backport-5090-fixing-missing-background-jobs-on-app-update

[stable12] Register the autoloading earlier so we can load the background jobs
This commit is contained in:
Joas Schilling 2017-05-31 11:19:21 +02:00 committed by GitHub
commit bb583580d7
1 changed files with 1 additions and 2 deletions

View File

@ -1054,10 +1054,9 @@ class OC_App {
self::loadApp($appId);
include $appPath . '/appinfo/update.php';
}
self::registerAutoloading($appId, $appPath);
self::setupBackgroundJobs($appData['background-jobs']);
if(isset($appData['settings']) && is_array($appData['settings'])) {
$appPath = self::getAppPath($appId);
self::registerAutoloading($appId, $appPath);
\OC::$server->getSettingsManager()->setupSettings($appData['settings']);
}