summaryrefslogtreecommitdiff
path: root/modules
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 /modules
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 'modules')
-rw-r--r--modules/mod_switch_theme.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mod_switch_theme.php b/modules/mod_switch_theme.php
index 5dd5f6d..c260f40 100644
--- a/modules/mod_switch_theme.php
+++ b/modules/mod_switch_theme.php
@@ -1,5 +1,5 @@
<?php
-$change_theme = $gBitSystem->getPreference('users_themes');
+$change_theme = $gBitSystem->getConfig('users_themes');
$gBitSmarty->assign('change_theme', $change_theme);
$style = $gBitSystem->getStyle();
@@ -7,7 +7,7 @@ if( $change_theme == 'y' ) {
if (isset($_COOKIE['tiki-theme'])) {
$style = $_COOKIE['tiki-theme'];
}
- if ($gBitUser->isValid() && $gBitSystem->getPreference('users_preferences') == 'y') {
+ if ($gBitUser->isValid() && $gBitSystem->getConfig('users_preferences') == 'y') {
$userStyle = $gBitUser->getPreference('theme');
$style = empty($userStyle) ? $style : $userStyle;
}