From 7fe272fd74edc91571a8e6507e9d6e2d87b3871a Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 17 Jul 2025 16:58:30 +0200 Subject: fix(Coordinator): ensure the core app is loaded first Signed-off-by: Ferdinand Thiessen --- lib/private/AppFramework/Bootstrap/Coordinator.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/private') diff --git a/lib/private/AppFramework/Bootstrap/Coordinator.php b/lib/private/AppFramework/Bootstrap/Coordinator.php index 64e3dbfd928..a31dd6a05e1 100644 --- a/lib/private/AppFramework/Bootstrap/Coordinator.php +++ b/lib/private/AppFramework/Bootstrap/Coordinator.php @@ -46,7 +46,13 @@ class Coordinator { } public function runInitialRegistration(): void { - $this->registerApps(OC_App::getEnabledApps()); + $apps = OC_App::getEnabledApps(); + if (!empty($apps)) { + // make sure to also register the core app + $apps = ['core', ...$apps]; + } + + $this->registerApps($apps); } public function runLazyRegistration(string $appId): void { -- cgit v1.2.3