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

Register the autoloading earlier so we can load the background jobs
This commit is contained in:
blizzz 2017-05-26 10:43:08 +02:00 committed by GitHub
commit de953b4d74

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']);
}