diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2025-04-11 17:03:21 -0100 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2025-04-14 21:53:36 +0200 |
commit | 20ed42a7d7763047dae11b60a7a9b7ea7dae4a40 (patch) | |
tree | 448c6e58f2202f1348b5be0462d60bdc8d3bafad | |
parent | 291fb0d263dd3d85598ee109ea85cf63e6e5497a (diff) | |
download | nextcloud-server-backport/52135/stable30.tar.gz nextcloud-server-backport/52135/stable30.zip |
fix(setup): ignore missing theming appbackport/52135/stable30
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 420fc414279..fe475ecf403 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -180,8 +180,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(); |