From 3f29c559145e3a8bd695ea910dd89969ca2258dc Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 24 May 2017 12:58:10 +0200 Subject: [PATCH] Register the autoloading earlier so we can load the background jobs Signed-off-by: Joas Schilling --- lib/private/legacy/app.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php index 2e9e97d5bd..1bdbd1e2a8 100644 --- a/lib/private/legacy/app.php +++ b/lib/private/legacy/app.php @@ -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']); }