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
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-02-03 18:12:37 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-02-28 12:31:52 +0300
commit63d7e7c798f6a6cbd56642a287673532b991c5ac (patch)
treebe63573098396d10a98f281f7b7f1a7634b052c9 /lib
parent9e80f6f18a2247d60438cac64fe52156a79ff93d (diff)
Build OC\Core\Application when running occ or cron to register listeners correctly
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
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