Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2022-03-29 19:21:34 +0300
committerGitHub <noreply@github.com>2022-03-29 19:21:34 +0300
commitbfdc9cca33f0f00b0171fa6c176498ca50b09f0c (patch)
tree017dbcb0a59ac6878edfe24553554226f69f7b7d
parent4d4f5449297d9673647082ec712a75b892d7a11c (diff)
parent323f11226dc9dc9d0195855b465e72ec6339f1c3 (diff)
Merge pull request #31530 from nextcloud/backport/stable22/30889
[stable22] Fix listeners declaration in case of occ usage
-rw-r--r--lib/base.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 2e6e2a65d80..3d9cca12a5a 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -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