diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-02-01 20:38:42 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-02-01 20:38:42 +0000 |
| commit | ce7a28e8a952839374fc5635509aae3497c1ed0b (patch) | |
| tree | 963e84bec9cc1f5bceeab1ab81081c4827de160e /modules | |
| parent | a27c5aa507d617f93a03f7af79b5c02e18f2a07c (diff) | |
| download | themes-ce7a28e8a952839374fc5635509aae3497c1ed0b.tar.gz themes-ce7a28e8a952839374fc5635509aae3497c1ed0b.tar.bz2 themes-ce7a28e8a952839374fc5635509aae3497c1ed0b.zip | |
first pass at removing theme_control stuff not finished yet, but should be out soon enough
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_switch_theme.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/mod_switch_theme.php b/modules/mod_switch_theme.php index 259d311..4e6d2ac 100644 --- a/modules/mod_switch_theme.php +++ b/modules/mod_switch_theme.php @@ -1,6 +1,4 @@ <?php -require_once(THEMES_PKG_PATH."theme_control_lib.php"); - $change_theme = $gBitSystem->getPreference('feature_user_theme'); $gBitSmarty->assign('change_theme', $change_theme); $style = $gBitSystem->getStyle(); @@ -14,9 +12,8 @@ if( $change_theme == 'y' ) { $style = empty($userStyle) ? $style : $userStyle; } - global $tcontrollib; - - $stylesList = $tcontrollib->getStyles(); + $styles = $gBitThemes->getStyles( NULL, TRUE ); + $stylesList = $gBitThemes->getStyles(); $gBitSmarty->assign('styleslist',$stylesList); if(isset($style)){ |
