diff options
author | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-08-19 01:08:15 +0200 |
---|---|---|
committer | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-08-19 01:08:15 +0200 |
commit | 5c0220df0942db7aded0540c8c408bfbaadf6c16 (patch) | |
tree | ff78b37895ea32de2065e844b1fd5f186b03d9e7 /boot.php | |
parent | 8bac352b1cbbefd12fe04e1b269367472cba58ee (diff) | |
download | volse-hubzilla-5c0220df0942db7aded0540c8c408bfbaadf6c16.tar.gz volse-hubzilla-5c0220df0942db7aded0540c8c408bfbaadf6c16.tar.bz2 volse-hubzilla-5c0220df0942db7aded0540c8c408bfbaadf6c16.zip |
More steps for mobile theme toggling + dash elimination
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -1964,13 +1964,19 @@ function current_theme(){ $is_mobile = $a->is_mobile || $a->is_tablet; if($is_mobile) { - $system_theme = ((isset($a->config['system']['mobile_theme'])) ? $a->config['system']['mobile_theme'] : ''); - $theme_name = ((isset($_SESSION) && x($_SESSION,'mobile_theme')) ? $_SESSION['mobile_theme'] : $system_theme); - - if($theme_name === '---') { - // user has selected to have the mobile theme be the same as the normal one - $system_theme = ''; - $theme_name = ''; + if(isset($_SESSION['show_mobile']) && !$_SESSION['show_mobile']) { + $system_theme = ''; + $theme_name = ''; + } + else { + $system_theme = ((isset($a->config['system']['mobile_theme'])) ? $a->config['system']['mobile_theme'] : ''); + $theme_name = ((isset($_SESSION) && x($_SESSION,'mobile_theme')) ? $_SESSION['mobile_theme'] : $system_theme); + + if($theme_name === '---') { + // user has selected to have the mobile theme be the same as the normal one + $system_theme = ''; + $theme_name = ''; + } } } else { @@ -2345,7 +2351,7 @@ function construct_page(&$a) { } if($a->is_mobile || $a->is_tablet) { - if(isset($_SESSION['show-mobile']) && !$_SESSION['show-mobile']) { + if(isset($_SESSION['show_mobile']) && !$_SESSION['show_mobile']) { $link = $a->get_baseurl() . '/toggle_mobile?f=&address=' . curPageURL(); } else { |