diff options
author | provokateurin <kate@provokateurin.de> | 2024-11-06 16:20:38 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-11-07 19:13:29 +0000 |
commit | c786e41a428473fd19ed503114be421c8534b09d (patch) | |
tree | 2a388a9c46796333fa8b18f956b587c1632b08dd /apps/theming/lib/Service | |
parent | d52e850623bd7f9ea8d880a39e440d58e7145257 (diff) | |
download | nextcloud-server-c786e41a428473fd19ed503114be421c8534b09d.tar.gz nextcloud-server-c786e41a428473fd19ed503114be421c8534b09d.zip |
fix(theming): Return default theme if the user never selected a themebackport/49112/stable28
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/theming/lib/Service')
-rw-r--r-- | apps/theming/lib/Service/ThemesService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/Service/ThemesService.php b/apps/theming/lib/Service/ThemesService.php index d080752a032..8244e69e219 100644 --- a/apps/theming/lib/Service/ThemesService.php +++ b/apps/theming/lib/Service/ThemesService.php @@ -143,7 +143,7 @@ class ThemesService { $this->setEnabledThemes($enabledThemes); return $enabledThemes; } - + return $themesIds; } @@ -176,7 +176,7 @@ class ThemesService { } $enforcedTheme = $this->config->getSystemValueString('enforce_theme', ''); - $enabledThemes = json_decode($this->config->getUserValue($user->getUID(), Application::APP_ID, 'enabled-themes', '[]')); + $enabledThemes = json_decode($this->config->getUserValue($user->getUID(), Application::APP_ID, 'enabled-themes', '["default"]')); if ($enforcedTheme !== '') { return array_merge([$enforcedTheme], $enabledThemes); } |