]> source.dussan.org Git - nextcloud-server.git/commitdiff
Register the autoloading earlier so we can load the background jobs 5127/head
authorJoas Schilling <coding@schilljs.com>
Wed, 24 May 2017 10:58:10 +0000 (12:58 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 26 May 2017 10:53:33 +0000 (12:53 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/legacy/app.php

index 2e9e97d5bd7901520179e4e0f7b830f81984f2d0..1bdbd1e2a838d2b11d86ad5d2df999ec5c0fa86d 100644 (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']);
                }