diff options
| author | laetzer <laetzer@users.sourceforge.net> | 2008-09-03 19:38:02 +0000 |
|---|---|---|
| committer | laetzer <laetzer@users.sourceforge.net> | 2008-09-03 19:38:02 +0000 |
| commit | b1f649989248060fc3e25998d91003beebfcbece (patch) | |
| tree | 1a35745e63c3c9a971dd7dc43d4c5cb98b9a7800 | |
| parent | 3096fa080afd09618660989cdacde09510f6c491 (diff) | |
| download | rss-b1f649989248060fc3e25998d91003beebfcbece.tar.gz rss-b1f649989248060fc3e25998d91003beebfcbece.tar.bz2 rss-b1f649989248060fc3e25998d91003beebfcbece.zip | |
allow any value to be 'yes'; 10 instead of 99 default rows
| -rw-r--r-- | modules/mod_rss_feed.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/mod_rss_feed.php b/modules/mod_rss_feed.php index 8ffb87a..56b5953 100644 --- a/modules/mod_rss_feed.php +++ b/modules/mod_rss_feed.php @@ -16,7 +16,9 @@ $listHash = Array(); $listHash['id'] = $module_params['id']; $listHash['cache_time'] = !empty($cache_time)?$cache_time:1; + if ( $items = $rsslib->parse_feeds( $listHash ) ){ + $gBitSmarty->assign( 'modRSSItems', $items ); //if we want short descriptions get them @@ -24,18 +26,18 @@ if ( $items = $rsslib->parse_feeds( $listHash ) ){ if ( !empty($module_params['desc_length']) && is_numeric($module_params['desc_length']) && !empty($items)){ $shortdescs = $rsslib->get_short_descs( $items, $module_params['desc_length'] ); } - + $gBitSmarty->assign( 'short_desc', $shortdescs ); //if desc is set and no desc_length is given then we present the full description/content of each item $hideDesc = TRUE; - if (!empty($module_params['desc']) && $module_params['desc'] == 'y' && empty($module_params['desc_length']) ){ + if (!empty($module_params['desc']) && empty($module_params['desc_length']) ){ $hideDesc = FALSE; } $gBitSmarty->assign( 'hideDesc', $hideDesc ); - $max = !empty( $module_params['max'] ) ? $module_params['max'] : 99; + $max = !empty( $module_params['max'] ) ? $module_params['max'] : 10; $gBitSmarty->assign( 'max', $max ); } ?> |
