diff options
| author | lsces <lester@lsces.co.uk> | 2025-08-27 15:41:19 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2025-08-27 15:41:19 +0100 |
| commit | 09dfa5c64a766ee29c2eabfae35bad6e37977eb1 (patch) | |
| tree | 63234fd40589e333216bed286a31b75e13bfc580 /modules | |
| parent | 0e12ec2be3836065ecaa2dbb1c4b5da30501a933 (diff) | |
| download | themes-09dfa5c64a766ee29c2eabfae35bad6e37977eb1.tar.gz themes-09dfa5c64a766ee29c2eabfae35bad6e37977eb1.tar.bz2 themes-09dfa5c64a766ee29c2eabfae35bad6e37977eb1.zip | |
Extra tools updated to PHP8.4 and namespace
Diffstat (limited to 'modules')
| -rwxr-xr-x[-rw-r--r--] | modules/mod_switch_theme.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/mod_switch_theme.php b/modules/mod_switch_theme.php index 76338e9..f199b6d 100644..100755 --- a/modules/mod_switch_theme.php +++ b/modules/mod_switch_theme.php @@ -10,7 +10,7 @@ */ global $gBitThemes; $change_theme = $gBitSystem->getConfig('users_themes'); -$_template->tpl_vars['change_theme'] = new Smarty_variable( $change_theme); +$gBitSmarty->assign( 'change_theme', $change_theme); $style = $gBitThemes->getStyle(); if( $change_theme == 'y' ) { @@ -22,12 +22,11 @@ if( $change_theme == 'y' ) { $style = $_COOKIE['bw-theme']; } - $styles = $gBitThemes->getStyles( NULL, TRUE ); + $styles = $gBitThemes->getStyles( null, true ); $stylesList = $gBitThemes->getStyles(); - $_template->tpl_vars['styleslist'] = new Smarty_variable($stylesList); + $gBitSmarty->assign( 'styleslist', $stylesList ); if(isset($style)){ - $_template->tpl_vars['style'] = new Smarty_variable( $style); + $gBitSmarty->assign( 'style', $style); } } -?> |
