mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #52135 from nextcloud/fix/52131/ignore-missing-themes-31
[stable31] ignore missing theming app
This commit is contained in:
commit
cc988dff85
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