diff options
| author | spiderr <spider@viovio.com> | 2013-04-11 12:44:51 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-04-11 12:44:51 -0400 |
| commit | b00abfb7b009271d95f4c3e84a16f40b40ea1f4b (patch) | |
| tree | 186ba8504e60d2cf2151a04ba59e4d3a6b5fafbe /modules | |
| parent | d860e25358c23f048ced90bfa6ef1e432254f90f (diff) | |
| download | users-b00abfb7b009271d95f4c3e84a16f40b40ea1f4b.tar.gz users-b00abfb7b009271d95f4c3e84a16f40b40ea1f4b.tar.bz2 users-b00abfb7b009271d95f4c3e84a16f40b40ea1f4b.zip | |
update modules for smarty 3 template centric variables, and assign modules to the _template
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_user_pages.php | 6 | ||||
| -rw-r--r-- | modules/mod_who_is_there.php | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/modules/mod_user_pages.php b/modules/mod_user_pages.php index 6fcdcff..c64aa71 100644 --- a/modules/mod_user_pages.php +++ b/modules/mod_user_pages.php @@ -20,12 +20,12 @@ if( !empty( $gQueryUser->mUserId ) ) { if( empty( $module_title ) ) { if( !empty( $module_params['content_type_guid'] ) && !empty( $gLibertySystem->mContentTypes[$module_params['content_type_guid']] ) ) { $title = tra( "Last Changes" ).': '.$gLibertySystem->getContentTypeName( $module_params['content_type_guid'], TRUE ); - $gBitSmarty->assign( 'contentType', $module_params['content_type_guid'] ); + $_template->tpl_vars['contentType'] = new Smarty_variable( $module_params['content_type_guid'] ); } else { - $gBitSmarty->assign( 'contentType', FALSE ); + $_template->tpl_vars['contentType'] = new Smarty_variable( FALSE ); $title = tra( "Last Changes" ); } - $gBitSmarty->assign( 'moduleTitle', $title ); + $_template->tpl_vars['moduleTitle'] = new Smarty_variable( $title ); } if( !empty( $module_params['show_date'] ) ) { diff --git a/modules/mod_who_is_there.php b/modules/mod_who_is_there.php index 59a4629..45df33b 100644 --- a/modules/mod_who_is_there.php +++ b/modules/mod_who_is_there.php @@ -13,6 +13,6 @@ * @subpackage modules */ $listHash['online'] = TRUE; -$gBitSmarty->assign( 'online_users', $gBitUser->getUserActivity( $listHash )); -$gBitSmarty->assign( 'logged_users', $gBitUser->countSessions( TRUE )); +$_template->tpl_vars['online_users'] = new Smarty_variable( $gBitUser->getUserActivity( $listHash ); +$_template->tpl_vars['logged_users'] = new Smarty_variable( $gBitUser->countSessions( TRUE ); ?> |
