diff options
| author | spiderr <spider@viovio.com> | 2013-04-11 12:44:19 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-04-11 12:44:19 -0400 |
| commit | aa1c63c70dba6e7147bd78b702a76a0f0005dddb (patch) | |
| tree | 2b02b75a92bcb8831553f17480decf326d49fb2e | |
| parent | 94855b975713032537b3dd5fe500453960fa3d8e (diff) | |
| download | rss-aa1c63c70dba6e7147bd78b702a76a0f0005dddb.tar.gz rss-aa1c63c70dba6e7147bd78b702a76a0f0005dddb.tar.bz2 rss-aa1c63c70dba6e7147bd78b702a76a0f0005dddb.zip | |
update modules for smarty 3 template centric variables, and assign modules to the _template
| -rw-r--r-- | modules/mod_rss_feed.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/mod_rss_feed.php b/modules/mod_rss_feed.php index 56b5953..b94240b 100644 --- a/modules/mod_rss_feed.php +++ b/modules/mod_rss_feed.php @@ -19,7 +19,7 @@ $listHash['cache_time'] = !empty($cache_time)?$cache_time:1; if ( $items = $rsslib->parse_feeds( $listHash ) ){ - $gBitSmarty->assign( 'modRSSItems', $items ); + $_template->tpl_vars['modRSSItems'] = new Smarty_variable( $items ); //if we want short descriptions get them $shortdescs = Array(); @@ -27,7 +27,7 @@ if ( $items = $rsslib->parse_feeds( $listHash ) ){ $shortdescs = $rsslib->get_short_descs( $items, $module_params['desc_length'] ); } - $gBitSmarty->assign( 'short_desc', $shortdescs ); + $_template->tpl_vars['short_desc'] = new Smarty_variable( $shortdescs ); //if desc is set and no desc_length is given then we present the full description/content of each item $hideDesc = TRUE; @@ -35,9 +35,9 @@ if ( $items = $rsslib->parse_feeds( $listHash ) ){ $hideDesc = FALSE; } - $gBitSmarty->assign( 'hideDesc', $hideDesc ); + $_template->tpl_vars['hideDesc'] = new Smarty_variable( $hideDesc ); $max = !empty( $module_params['max'] ) ? $module_params['max'] : 10; - $gBitSmarty->assign( 'max', $max ); + $_template->tpl_vars['max'] = new Smarty_variable( $max ); } ?> |
