aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.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 /include/security.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 'include/security.php')
-rw-r--r--include/security.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/security.php b/include/security.php
index 115539ae2..4738e473b 100644
--- a/include/security.php
+++ b/include/security.php
@@ -34,7 +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['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'];
@@ -149,7 +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');
+ $_SESSION['mobile_theme'] = get_pconfig(local_user(),'system', 'mobile_theme');
date_default_timezone_set($r[0]['channel_timezone']);
$ret = $r[0];
}