Register the autoloading earlier so we can load the background jobs

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-05-24 12:58:10 +02:00
parent 6cc26efbc5
commit 3f29c55914
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
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']);
}