diff options
| author | spiderr <spider@viovio.com> | 2013-04-11 12:38:53 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-04-11 12:38:53 -0400 |
| commit | da9c042e8dfadc35e7dfb755e3d4a32a4091c92d (patch) | |
| tree | 365d2e90dc06d914de0020be449156cf881854f6 | |
| parent | af9fae8aec9bb1975aabff324bb5a8f9a8c5a5d7 (diff) | |
| download | feed-da9c042e8dfadc35e7dfb755e3d4a32a4091c92d.tar.gz feed-da9c042e8dfadc35e7dfb755e3d4a32a4091c92d.tar.bz2 feed-da9c042e8dfadc35e7dfb755e3d4a32a4091c92d.zip | |
update modules for smarty 3 template centric variables, and assign modules to the _template
| -rw-r--r-- | modules/mod_feed.php | 2 | ||||
| -rw-r--r-- | 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; } } |
