aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2025-04-12 18:48:42 -0100
committerMaxence Lange <maxence@artificial-owl.com>2025-04-12 18:49:26 -0100
commit61ab5cf157263185b1c652f0e3a936814f7ab66b (patch)
treec314e4972594946c21f1bdd89d48d5bdcf6f906f
parente761c9e3eb2ab565adb890ce2faf33ada6fb3311 (diff)
downloadnextcloud-server-upstream/52135/52135-master.tar.gz
nextcloud-server-upstream/52135/52135-master.zip
fix(setup): ignore missing theming appupstream/52135/52135-master
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r--lib/private/TemplateLayout.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index d9c02619943..374972ece22 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -198,8 +198,13 @@ class TemplateLayout {
$page->assign('direction', $direction);
// Set body data-theme
- $themesService = Server::get(\OCA\Theming\Service\ThemesService::class);
- $page->assign('enabledThemes', $themesService->getEnabledThemes());
+ try {
+ $themesService = Server::get(\OCA\Theming\Service\ThemesService::class);
+ } catch (\OCP\AppFramework\QueryException) {
+ $themesService = null;
+ }
+
+ $page->assign('enabledThemes', $themesService?->getEnabledThemes() ?? []);
if ($this->config->getSystemValueBool('installed', false)) {
if (empty(self::$versionHash)) {