summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2013-04-11 13:08:33 -0400
committerspiderr <spider@viovio.com>2013-04-11 13:08:33 -0400
commit7aafd3e571d0de189c1c1990ad0d4c2a42f52d0b (patch)
tree3e5fe852623e173a80898f5b2f1497c5e900bbef /modules
parentb00abfb7b009271d95f4c3e84a16f40b40ea1f4b (diff)
downloadusers-7aafd3e571d0de189c1c1990ad0d4c2a42f52d0b.tar.gz
users-7aafd3e571d0de189c1c1990ad0d4c2a42f52d0b.tar.bz2
users-7aafd3e571d0de189c1c1990ad0d4c2a42f52d0b.zip
update modules for smarty 3 template centric variables, and assign modules to the _template
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_online_users.php4
-rw-r--r--modules/mod_since_last_visit.php2
-rw-r--r--modules/mod_user_pages.php4
-rw-r--r--modules/mod_user_profile.php4
4 files changed, 7 insertions, 7 deletions
diff --git a/modules/mod_online_users.php b/modules/mod_online_users.php
index b810a42..d041163 100644
--- a/modules/mod_online_users.php
+++ b/modules/mod_online_users.php
@@ -16,6 +16,6 @@
$listHash['online' ] = true;
$listHash['last_get'] = !empty( $module_params['time_buffer'] ) ? $module_params['time_buffer'] : 900;
$online_users = $gBitUser->getUserActivity( $listHash );
-$gBitSmarty->assign('online_users', $online_users);
-$gBitSmarty->assign('logged_users', count( $online_users ) );
+$_template->tpl_vars['online_users'] = new Smarty_variable( $online_users);
+$_template->tpl_vars['logged_users'] = new Smarty_variable( count( $online_users ) );
?>
diff --git a/modules/mod_since_last_visit.php b/modules/mod_since_last_visit.php
index 9015369..d6c0f53 100644
--- a/modules/mod_since_last_visit.php
+++ b/modules/mod_since_last_visit.php
@@ -14,7 +14,7 @@
*/
if( $gBitSystem->isPackageActive( 'bitforums' ) ) {
$nvi_info = $gBitSystem->get_news_from_last_visit($user);
- $gBitSmarty->assign('nvi_info', $nvi_info);
+ $_template->tpl_vars['nvi_info'] = new Smarty_variable( $nvi_info);
}
?>
diff --git a/modules/mod_user_pages.php b/modules/mod_user_pages.php
index c64aa71..b1a7f25 100644
--- a/modules/mod_user_pages.php
+++ b/modules/mod_user_pages.php
@@ -29,7 +29,7 @@ if( empty( $module_title ) ) {
}
if( !empty( $module_params['show_date'] ) ) {
- $gBitSmarty->assign( 'userShowDate' , TRUE );
+ $_template->tpl_vars['userShowDate'] = new Smarty_variable( TRUE );
}
$listHash = array(
@@ -40,6 +40,6 @@ $listHash = array(
'user_id' => $userId,
);
$modLastPages = $gBitUser->getContentList( $listHash );
-$gBitSmarty->assign_by_ref( 'modLastPages', $modLastPages );
+$_template->tpl_vars['modLastPages'] = new Smarty_variable( $modLastPages );
?>
diff --git a/modules/mod_user_profile.php b/modules/mod_user_profile.php
index 8418ec6..4b92773 100644
--- a/modules/mod_user_profile.php
+++ b/modules/mod_user_profile.php
@@ -34,6 +34,6 @@ if( !empty( $module_params['user_id'] )) {
$userPrefs = &$gBitUser->mPrefs;
}
-$gBitSmarty->assign_by_ref( 'userInfo', $userInfo );
-$gBitSmarty->assign_by_ref( 'userPrefs', $userPrefs );
+$_template->tpl_vars['userInfo'] = new Smarty_variable( $userInfo );
+$_template->tpl_vars['userPrefs'] = new Smarty_variable( $userPrefs );
?>