summaryrefslogtreecommitdiff
path: root/switch_theme.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-06 00:11:35 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-06 00:11:35 +0000
commitced3c4a89470d47d793f4cc5cad211afc6129977 (patch)
treea7920f50454fab63b5321b373ddff507136f7809 /switch_theme.php
parent8cfce8b3a080c87c0008abd899302e33333a126f (diff)
downloadthemes-ced3c4a89470d47d793f4cc5cad211afc6129977.tar.gz
themes-ced3c4a89470d47d793f4cc5cad211afc6129977.tar.bz2
themes-ced3c4a89470d47d793f4cc5cad211afc6129977.zip
more preference standardisation
Diffstat (limited to 'switch_theme.php')
-rw-r--r--switch_theme.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/switch_theme.php b/switch_theme.php
index 58464ff..d2a8898 100644
--- a/switch_theme.php
+++ b/switch_theme.php
@@ -7,12 +7,12 @@ include_once( KERNEL_PKG_PATH.'BitBase.php' );
if (isset($_SERVER['HTTP_REFERER'])) {
$orig_url = $_SERVER['HTTP_REFERER'];
} else {
- $orig_url = $bitIndex;
+ $orig_url = $bit_index;
}
if (isset($_GET['theme']) && $gBitSystem->getPreference('feature_user_theme') == 'y'){
$new_theme = $_GET['theme'];
- if(isset($user) && $gBitSystem->getPreference('feature_userPreferences') == 'y' ) {
+ if(isset($user) && $gBitSystem->getPreference('feature_user_preferences') == 'y' ) {
$gBitUser->storePreference('theme',$new_theme);
setcookie('tiki-theme', '', time()-3600*24*30*12, $gBitSystem->getPreference('cookie_path'), $gBitSystem->getPreference('cookie_domain'));
} else {