[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.385,1.386
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sat Oct 9 08:22:06 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv8899
Modified Files:
lib-common.php
Log Message:
Minor correction in the handling of RSS/RDF feeds.
Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.385
retrieving revision 1.386
diff -C2 -d -r1.385 -r1.386
*** lib-common.php 7 Oct 2004 01:50:31 -0000 1.385
--- lib-common.php 9 Oct 2004 12:22:04 -0000 1.386
***************
*** 3841,3845 ****
{
$RDFtitle = str_replace( '$', '$', $RDFtitle );
! $RDFheadlines[] .= '<a href="' . addslashes( trim( $RDFlink )) . '">' . addslashes( trim( $RDFtitle )) . '</a>';
$RDFtitle = '';
$RDFlink = '';
--- 3841,3845 ----
{
$RDFtitle = str_replace( '$', '$', $RDFtitle );
! $RDFheadlines[] = '<a href="' . addslashes( trim( $RDFlink )) . '">' . addslashes( trim( $RDFtitle )) . '</a>';
$RDFtitle = '';
$RDFlink = '';
***************
*** 3887,3890 ****
--- 3887,3892 ----
$RDFheadlines = array();
+ $maxheadlines = 0; // set to something > 0 to limit max. number of headlines
+
$update = date( 'Y-m-d H:i:s' );
***************
*** 3944,3947 ****
--- 3946,3953 ----
if( !$rdferror )
{
+ if( $maxheadlines > 0 )
+ {
+ $RDFheadlines = array_slice( $RDFheadlines, 0, $maxheadlines );
+ }
$blockcontent = COM_makeList( $RDFheadlines, 'list-feed' );
$RDFheadlines = array();
More information about the geeklog-cvs
mailing list