Skip to content

Commit 5c4cba1

Browse files
authored
Merge pull request #30889 from nextcloud/fix/fix-occ-listeners
Fix listeners declaration in case of occ usage
2 parents cf30408 + 63d7e7c commit 5c4cba1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/base.php

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

735737
//make sure temporary files are cleaned up

0 commit comments

Comments
 (0)