]> git.mxchange.org Git - friendica.git/commitdiff
Show node's theme as selected in display setting for new users
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 18 Jul 2019 03:08:26 +0000 (23:08 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 18 Jul 2019 03:08:26 +0000 (23:08 -0400)
mod/settings.php

index 8c9d2a49e33f47fa4600bb362156b9ce9fedab2b..2d8162dd77674b6fd82e63eb63f0cef78e6ed859 100644 (file)
@@ -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'));