summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-11-29 13:32:56 +0000
committerfisharebest <fisharebest@gmail.com>2011-11-29 13:32:56 +0000
commit5f15b98adc70de1da3584c3bb5bdef30163e25f6 (patch)
treebd6fc6fd180baa0e69754d7d7fc249f2f4b228c4
parentf2542f526a7033b02a68b170f0cdb9cdc2256537 (diff)
downloadwebtrees-5f15b98adc70de1da3584c3bb5bdef30163e25f6.tar.gz
webtrees-5f15b98adc70de1da3584c3bb5bdef30163e25f6.tar.bz2
webtrees-5f15b98adc70de1da3584c3bb5bdef30163e25f6.zip
#584835 - remove more references to $_SESSION and use $WT_SESSION instead
-rw-r--r--themes/colors/theme.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/colors/theme.php b/themes/colors/theme.php
index 87058fed2e..f0d0b58c52 100644
--- a/themes/colors/theme.php
+++ b/themes/colors/theme.php
@@ -87,9 +87,9 @@ if (isset($_GET['themecolor']) && array_key_exists($_GET['themecolor'], $COLOR_T
set_site_setting('DEFAULT_COLOR_PALETTE', $subColor);
}
unset($_GET['themecolor']);
-} elseif (isset($_SESSION['themecolor'])) {
+} elseif ($WT_SESSION->themecolor) {
// Previously selected color
- $subColor=$_SESSION['themecolor'];
+ $subColor=$WT_SESSION->themecolor;
} else {
if (WT_USER_ID) {
$subColor=get_user_setting(WT_USER_ID, 'themecolor');
@@ -101,7 +101,7 @@ if (isset($_GET['themecolor']) && array_key_exists($_GET['themecolor'], $COLOR_T
}
}
-$_SESSION['themecolor']=$subColor;
+$WT_SESSION->themecolor=$subColor;
$theme_name = "colors"; // need double quotes, as file is scanned/parsed by script
$footerfile = WT_THEME_DIR . 'footer.php';