mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix(setup): ignore missing theming app
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
291fb0d263
commit
20ed42a7d7
1 changed files with 6 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue