mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #52166 from nextcloud/upstream/52135/52135-master
This commit is contained in:
commit
d385e024b9
1 changed files with 7 additions and 2 deletions
|
|
@ -198,8 +198,13 @@ class TemplateLayout {
|
|||
$page->assign('direction', $direction);
|
||||
|
||||
// Set body data-theme
|
||||
$themesService = Server::get(\OCA\Theming\Service\ThemesService::class);
|
||||
$page->assign('enabledThemes', $themesService->getEnabledThemes());
|
||||
try {
|
||||
$themesService = Server::get(\OCA\Theming\Service\ThemesService::class);
|
||||
} catch (\OCP\AppFramework\QueryException) {
|
||||
$themesService = null;
|
||||
}
|
||||
|
||||
$page->assign('enabledThemes', $themesService?->getEnabledThemes() ?? []);
|
||||
|
||||
if ($this->config->getSystemValueBool('installed', false)) {
|
||||
if (empty(self::$versionHash)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue