diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:52:56 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:52:56 +0100 |
| commit | 83a18e46025e9b45705fa41909a6f85c34ee14eb (patch) | |
| tree | d5d9801869d89081fc3640797e0bbd3ef9f0c8d2 /modules | |
| parent | 0bd96c1c2d11b4b781dad5b5b98af3add4bd9369 (diff) | |
| download | rss-83a18e46025e9b45705fa41909a6f85c34ee14eb.tar.gz rss-83a18e46025e9b45705fa41909a6f85c34ee14eb.tar.bz2 rss-83a18e46025e9b45705fa41909a6f85c34ee14eb.zip | |
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'modules')
| -rwxr-xr-x[-rw-r--r--] | modules/help_mod_rss_feed.tpl | 0 | ||||
| -rw-r--r-- | modules/mod_rss_feed.php | 13 | ||||
| -rwxr-xr-x[-rw-r--r--] | modules/mod_rss_feed.tpl | 0 |
3 files changed, 6 insertions, 7 deletions
diff --git a/modules/help_mod_rss_feed.tpl b/modules/help_mod_rss_feed.tpl index b748290..b748290 100644..100755 --- a/modules/help_mod_rss_feed.tpl +++ b/modules/help_mod_rss_feed.tpl diff --git a/modules/mod_rss_feed.php b/modules/mod_rss_feed.php index 035fe29..601f557 100644 --- a/modules/mod_rss_feed.php +++ b/modules/mod_rss_feed.php @@ -17,27 +17,26 @@ $listHash = []; $listHash['id'] = $module_params['id']; $listHash['cache_time'] = !empty($cache_time)?$cache_time:1; - if ( $items = $rsslib->parse_feeds( $listHash ) ){ - $_template->assign( 'modRSSItems', $items ); + $_template->assign( 'modRSSItems', $items ); //if we want short descriptions get them - $shortdescs = []; + $shortdescs = []; if ( !empty($module_params['desc_length']) && is_numeric($module_params['desc_length']) && !empty($items)){ $shortdescs = $rsslib->get_short_descs( $items, $module_params['desc_length'] ); } - $_template->assign( 'short_desc', $shortdescs ); - + $_template->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']) && empty($module_params['desc_length']) ){ $hideDesc = FALSE; } - + $_template->assign( 'hideDesc', $hideDesc ); - + $max = !empty( $module_params['max'] ) ? $module_params['max'] : 10; $_template->assign( 'max', $max ); } diff --git a/modules/mod_rss_feed.tpl b/modules/mod_rss_feed.tpl index 43e157b..43e157b 100644..100755 --- a/modules/mod_rss_feed.tpl +++ b/modules/mod_rss_feed.tpl |
