diff options
| author | spiderr <spider@viovio.com> | 2013-04-11 12:38:56 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-04-11 12:38:56 -0400 |
| commit | 21597e8b469bf854cdd88cc1bd40e89139d2fe8a (patch) | |
| tree | 96e1dbbda7e65407382ea28b6dd960804e398f21 /modules | |
| parent | 8eca82d070d2883cfbca9467b7d22b26fc13552e (diff) | |
| download | boards-21597e8b469bf854cdd88cc1bd40e89139d2fe8a.tar.gz boards-21597e8b469bf854cdd88cc1bd40e89139d2fe8a.tar.bz2 boards-21597e8b469bf854cdd88cc1bd40e89139d2fe8a.zip | |
update modules for smarty 3 template centric variables, and assign modules to the _template
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_recent_posts.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mod_recent_posts.php b/modules/mod_recent_posts.php index 2adf421..f26b8bf 100644 --- a/modules/mod_recent_posts.php +++ b/modules/mod_recent_posts.php @@ -27,7 +27,7 @@ if( !empty( $module_params['b'] ) ) { } elseif( !empty( $_REQUEST['b'] ) && empty( $module_params['all_boards'] ) ) { $listHash['board_id'] = $_REQUEST['b']; } -$gBitSmarty->assign( 'modRecentPostsBoardId', !empty( $listHash['board_id'] ) ? $listHash['board_id'] : '' ); +$_template->tpl_vars['modRecentPostsBoardId'] = new Smarty_variable( !empty( $listHash['board_id'] ); if( BitBase::verifyId( $gQueryUserId ) ) { $listHash['user_id'] = $gQueryUserId; |
