diff options
author | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-08-16 02:30:55 +0200 |
---|---|---|
committer | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-08-16 02:30:55 +0200 |
commit | bdfd0aa917d75f68ff20d900e691f626df13da79 (patch) | |
tree | 3d978aeffbc34c2e05e6c3417186bee2c927fde1 /include/security.php | |
parent | ef414ba94c134ffb6a0ac6d81eafec76519e2bda (diff) | |
download | volse-hubzilla-bdfd0aa917d75f68ff20d900e691f626df13da79.tar.gz volse-hubzilla-bdfd0aa917d75f68ff20d900e691f626df13da79.tar.bz2 volse-hubzilla-bdfd0aa917d75f68ff20d900e691f626df13da79.zip |
Fix Load mobile theme
Diffstat (limited to 'include/security.php')
-rw-r--r-- | include/security.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/security.php b/include/security.php index ef4d5a313..115539ae2 100644 --- a/include/security.php +++ b/include/security.php @@ -34,6 +34,7 @@ function authenticate_success($user_record, $login_initial = false, $interactive else { $_SESSION['uid'] = $user_record['uid']; $_SESSION['theme'] = $user_record['theme']; + $_SESSION['mobile-theme'] = get_pconfig($user_record['uid'], 'system', 'mobile_theme'); $_SESSION['authenticated'] = 1; $_SESSION['page_flags'] = $user_record['page-flags']; $_SESSION['my_url'] = $a->get_baseurl() . '/channel/' . $user_record['nickname']; @@ -148,6 +149,7 @@ function change_channel($change_channel) { $_SESSION['uid'] = intval($r[0]['channel_id']); get_app()->set_channel($r[0]); $_SESSION['theme'] = $r[0]['channel_theme']; + $_SESSION['mobile-theme'] = get_pconfig(local_user(),'system', 'mobile_theme'); date_default_timezone_set($r[0]['channel_timezone']); $ret = $r[0]; } |