aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Service
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-11-06 16:20:38 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-11-07 19:13:29 +0000
commitc786e41a428473fd19ed503114be421c8534b09d (patch)
tree2a388a9c46796333fa8b18f956b587c1632b08dd /apps/theming/lib/Service
parentd52e850623bd7f9ea8d880a39e440d58e7145257 (diff)
downloadnextcloud-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.php4
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);
}