mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Merge pull request #52164 from nextcloud/backport/52135/stable29
[stable29] ignore missing theming app
This commit is contained in:
commit
4c67fe8521
1 changed files with 6 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue