From da9c042e8dfadc35e7dfb755e3d4a32a4091c92d Mon Sep 17 00:00:00 2001 From: spiderr Date: Thu, 11 Apr 2013 12:38:53 -0400 Subject: update modules for smarty 3 template centric variables, and assign modules to the _template --- modules/mod_feed.php | 2 +- modules/mod_status.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/mod_feed.php b/modules/mod_feed.php index 779e260..9e1f56c 100644 --- a/modules/mod_feed.php +++ b/modules/mod_feed.php @@ -21,7 +21,7 @@ if( !empty($gQueryUser) ){ $actions = feed_get_actions( $listHash ); - $gBitSmarty->assign( 'actions', $actions); + $_template->tpl_vars['actions'] = new Smarty_variable( $actions); } diff --git a/modules/mod_status.php b/modules/mod_status.php index fd6271e..a9070f4 100644 --- a/modules/mod_status.php +++ b/modules/mod_status.php @@ -26,7 +26,7 @@ if( !empty( $moduleParams['module_params']['user_id'] ) ){ } $statuses = feed_get_status( $listHash ); -$gBitSmarty->assign( 'statuses', $statuses); +$_template->tpl_vars['statuses'] = new Smarty_variable( $statuses); foreach ($statuses as $status){ @@ -45,7 +45,7 @@ foreach ($statuses as $status){ $statuses = feed_get_status( $listHash ); - $gBitSmarty->assign( 'statuses', $statuses); + $_template->tpl_vars['statuses'] = new Smarty_variable( $statuses); break; } } -- cgit v1.3