Merge pull request #31530 from nextcloud/backport/stable22/30889

[stable22] Fix listeners declaration in case of occ usage
This commit is contained in:
Côme Chilliet 2022-03-29 18:21:34 +02:00 committed by GitHub
commit bfdc9cca33
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