summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2013-04-11 13:08:23 -0400
committerspiderr <spider@viovio.com>2013-04-11 13:08:23 -0400
commitefaea33bc136cde65af7be3f34e4460d948dadb1 (patch)
treee08d7e019a72da974295f1acbf51677880011b60 /modules
parentd9113fca36dfb1b7a44ebef42c4d9659b30d4156 (diff)
downloadthemes-efaea33bc136cde65af7be3f34e4460d948dadb1.tar.gz
themes-efaea33bc136cde65af7be3f34e4460d948dadb1.tar.bz2
themes-efaea33bc136cde65af7be3f34e4460d948dadb1.zip
update modules for smarty 3 template centric variables, and assign modules to the _template
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_switch_theme.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mod_switch_theme.php b/modules/mod_switch_theme.php
index c880575..4b48e00 100644
--- a/modules/mod_switch_theme.php
+++ b/modules/mod_switch_theme.php
@@ -10,7 +10,7 @@
*/
global $gBitThemes;
$change_theme = $gBitSystem->getConfig('users_themes');
-$gBitSmarty->assign('change_theme', $change_theme);
+$_template->tpl_vars['change_theme'] = new Smarty_variable( $change_theme);
$style = $gBitThemes->getStyle();
if( $change_theme == 'y' ) {
@@ -25,9 +25,9 @@ if( $change_theme == 'y' ) {
$styles = $gBitThemes->getStyles( NULL, TRUE );
$stylesList = $gBitThemes->getStyles();
- $gBitSmarty->assign('styleslist',$stylesList);
+ $_template->tpl_vars['styleslist'] = new Smarty_variable($stylesList);
if(isset($style)){
- $gBitSmarty->assign('style', $style);
+ $_template->tpl_vars['style'] = new Smarty_variable( $style);
}
}
?>