aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-15 22:52:19 -0700
committerfriendica <info@friendica.com>2013-08-15 22:52:19 -0700
commita8dd7280b33008d5100b6d8020640673abf5a78a (patch)
tree497d7446c445d669d57e1a1f4cfc12d94daa1efb /boot.php
parentfc0a9c78a9c6761a37460d93aed033786402731e (diff)
downloadvolse-hubzilla-a8dd7280b33008d5100b6d8020640673abf5a78a.tar.gz
volse-hubzilla-a8dd7280b33008d5100b6d8020640673abf5a78a.tar.bz2
volse-hubzilla-a8dd7280b33008d5100b6d8020640673abf5a78a.zip
get rid of more variables with dashes in the names - use underscore *except* in CSS. These were probably already here, but if you see any - please keep them out of PHP and MySQL where they sometimes get interpreted as a subtraction operation and are a bugger to find.
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index e26dc6fdd..f7d507d22 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'] = $a->profile['channel_mobile_theme'];
+ $_SESSION['mobile_theme'] = $a->profile['channel_mobile_theme'];
/**
* load/reload current theme info
@@ -1964,8 +1964,8 @@ 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);
+ $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