summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2022-02-28 11:52:03 +0100
committerGitHub <noreply@github.com>2022-02-28 11:52:03 +0100
commit5c4cba17f78abfe6915882665a7d3925c7c883d9 (patch)
tree4faadfe64d6c51c374b651bbe2374d3e38098656 /lib
parentcf3040898af3ba18cb445fe016c84a5d05cdf15d (diff)
parent63d7e7c798f6a6cbd56642a287673532b991c5ac (diff)
downloadnextcloud-server-5c4cba17f78abfe6915882665a7d3925c7c883d9.tar.gz
nextcloud-server-5c4cba17f78abfe6915882665a7d3925c7c883d9.zip
Merge pull request #30889 from nextcloud/fix/fix-occ-listeners
Fix listeners declaration in case of occ usage
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 3c10f7cb33a..c9f0ca008ba 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -730,6 +730,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