diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2025-04-11 17:03:21 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2025-04-14 08:43:31 -0100 |
commit | 958a614bcf29d05c02f834b4bbe6f68fa17b6f70 (patch) | |
tree | 843c3e11d6b8107b68782a811710140dfe2ccd68 | |
parent | 0fdc1cc4b1308692f189a5cbce58bcecc342d8b5 (diff) | |
download | nextcloud-server-backport/52135/stable29.tar.gz nextcloud-server-backport/52135/stable29.zip |
fix(setup): ignore missing theming appbackport/52135/stable29
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r-- | lib/private/TemplateLayout.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index 7d7002c71db..30f599099f3 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -212,8 +212,12 @@ class TemplateLayout extends \OC_Template { } // Set body data-theme - $themesService = \OCP\Server::get(\OCA\Theming\Service\ThemesService::class); - $this->assign('enabledThemes', $themesService->getEnabledThemes()); + try { + $themesService = \OCP\Server::get(\OCA\Theming\Service\ThemesService::class); + } catch (\OCP\AppFramework\QueryException) { + $themesService = null; + } + $this->assign('enabledThemes', $themesService?->getEnabledThemes() ?? []); // Send the language, locale, and direction to our layouts $lang = \OC::$server->get(IFactory::class)->findLanguage(); |