From ac53ee8e0f52ed3a0ca37f21a4f0f4578187b431 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 17 Jul 2019 23:08:26 -0400 Subject: [PATCH] Show node's theme as selected in display setting for new users --- mod/settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/settings.php b/mod/settings.php index 8c9d2a49e3..2d8162dd77 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -912,8 +912,8 @@ function settings_content(App $a) } } - $theme_selected = Session::get('theme', $default_theme); - $mobile_theme_selected = Session::get('mobile-theme', $default_mobile_theme); + $theme_selected = $a->user['theme'] ?: $default_theme; + $mobile_theme_selected = $a->user['mobile-theme'] ?: $default_mobile_theme; $nowarn_insecure = intval(PConfig::get(local_user(), 'system', 'nowarn_insecure')); -- 2.39.5