Merge pull request #31529 from nextcloud/backport/stable23/30889

[stable23] Fix listeners declaration in case of occ usage
This commit is contained in:
Carl Schwan 2022-03-21 11:33:48 +01:00 committed by GitHub
commit 43b8778e08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -727,6 +727,8 @@ class OC {
// Make sure that the application class is not loaded before the database is setup
if ($systemConfig->getValue("installed", false)) {
OC_App::loadApp('settings');
/* Build core application to make sure that listeners are registered */
self::$server->get(\OC\Core\Application::class);
}
//make sure temporary files are cleaned up