Skip to content

Commit bfdc9cc

Browse files
authored
Merge pull request #31530 from nextcloud/backport/stable22/30889
[stable22] Fix listeners declaration in case of occ usage
2 parents 4d4f544 + 323f112 commit bfdc9cc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/base.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,8 @@ public static function init() {
727727
// Make sure that the application class is not loaded before the database is setup
728728
if ($systemConfig->getValue("installed", false)) {
729729
OC_App::loadApp('settings');
730+
/* Build core application to make sure that listeners are registered */
731+
self::$server->get(\OC\Core\Application::class);
730732
}
731733

732734
//make sure temporary files are cleaned up

0 commit comments

Comments
 (0)