aboutsummaryrefslogtreecommitdiff
path: root/engine/Skin.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/Skin.php')
-rw-r--r--engine/Skin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/Skin.php b/engine/Skin.php
index 917eef7..a8924d4 100644
--- a/engine/Skin.php
+++ b/engine/Skin.php
@@ -23,8 +23,8 @@ class Skin {
else
$js = null;
- $theme = ($_COOKIE['theme'] ?? 'auto');
- if (!in_array($theme, ['auto', 'dark', 'light']))
+ $theme = themes::getUserTheme();
+ if ($theme != 'auto' && !themes::themeExists($theme))
$theme = 'auto';
$layout_ctx = new SkinContext('\\skin\\base');