summaryrefslogtreecommitdiff
path: root/switch_theme.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-03-01 18:35:19 +0000
committerChristian Fowler <spider@viovio.com>2006-03-01 18:35:19 +0000
commitd84f2498559a019baaf411d8b433a28bc6efbac3 (patch)
tree5974459f89d76293491d48c318d4bdf0def4e756 /switch_theme.php
parent8c7995b3871bb2165a6a3a2adecc6a9f397e459d (diff)
downloadthemes-d84f2498559a019baaf411d8b433a28bc6efbac3.tar.gz
themes-d84f2498559a019baaf411d8b433a28bc6efbac3.tar.bz2
themes-d84f2498559a019baaf411d8b433a28bc6efbac3.zip
move BitSystem:: preferences methods to get/set/load/storeConfig to avoid conflict with new content preferences
Diffstat (limited to 'switch_theme.php')
-rw-r--r--switch_theme.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/switch_theme.php b/switch_theme.php
index 33a82c5..30b2013 100644
--- a/switch_theme.php
+++ b/switch_theme.php
@@ -10,16 +10,16 @@ if (isset($_SERVER['HTTP_REFERER'])) {
$orig_url = $bit_index;
}
-if (isset($_GET['theme']) && $gBitSystem->getPreference('users_themes') == 'y'){
+if (isset($_GET['theme']) && $gBitSystem->getConfig('users_themes') == 'y'){
$new_theme = $_GET['theme'];
- if(isset($user) && $gBitSystem->getPreference('users_preferences') == 'y' ) {
+ if(isset($user) && $gBitSystem->getConfig('users_preferences') == 'y' ) {
$gBitUser->storePreference('theme',$new_theme);
- setcookie('tiki-theme', '', time()-3600*24*30*12, $gBitSystem->getPreference('cookie_path'), $gBitSystem->getPreference('cookie_domain'));
+ setcookie('tiki-theme', '', time()-3600*24*30*12, $gBitSystem->getConfig('cookie_path'), $gBitSystem->getConfig('cookie_domain'));
} else {
- setcookie('tiki-theme', $new_theme, time()+3600*24*30*12, $gBitSystem->getPreference('cookie_path'), $gBitSystem->getPreference('cookie_domain'));
+ setcookie('tiki-theme', $new_theme, time()+3600*24*30*12, $gBitSystem->getConfig('cookie_path'), $gBitSystem->getConfig('cookie_domain'));
}
} else{
- setcookie('tiki-theme', '', time()-3600*24*30*12, $gBitSystem->getPreference('cookie_path'), $gBitSystem->getPreference('cookie_domain'));
+ setcookie('tiki-theme', '', time()-3600*24*30*12, $gBitSystem->getConfig('cookie_path'), $gBitSystem->getConfig('cookie_domain'));
}
header("location: $orig_url");