From bdfd0aa917d75f68ff20d900e691f626df13da79 Mon Sep 17 00:00:00 2001 From: Christian Vogeley Date: Fri, 16 Aug 2013 02:30:55 +0200 Subject: Fix Load mobile theme --- boot.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 61f9f5da5..41704ff08 100755 --- a/boot.php +++ b/boot.php @@ -1557,8 +1557,9 @@ function profile_load(&$a, $nickname, $profile = '') { $a->page['title'] = $a->profile['channel_name'] . " - " . $a->profile['channel_address'] . "@" . $a->get_hostname(); - + $a->profile['channel_mobile_theme'] = get_pconfig(local_user(),'system', 'mobile_theme'); $_SESSION['theme'] = $a->profile['channel_theme']; + $_SESSION['mobile-theme'] = get_pconfig(local_user(),'system', 'mobile_theme'); /** * load/reload current theme info -- cgit v1.2.3 From 40204ad6e369807bbef8291ef7de75f027d26046 Mon Sep 17 00:00:00 2001 From: Christian Vogeley Date: Fri, 16 Aug 2013 02:38:30 +0200 Subject: Do it like normal themes --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 41704ff08..e26dc6fdd 100755 --- a/boot.php +++ b/boot.php @@ -1559,7 +1559,7 @@ function profile_load(&$a, $nickname, $profile = '') { $a->profile['channel_mobile_theme'] = get_pconfig(local_user(),'system', 'mobile_theme'); $_SESSION['theme'] = $a->profile['channel_theme']; - $_SESSION['mobile-theme'] = get_pconfig(local_user(),'system', 'mobile_theme'); + $_SESSION['mobile-theme'] = $a->profile['channel_mobile_theme']; /** * load/reload current theme info -- cgit v1.2.3