[geeklog-cvs] geeklog-1.3/system lib-story.php,1.11,1.12
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Fri Dec 10 04:19:52 EST 2004
Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv27503/system
Modified Files:
lib-story.php
Log Message:
Fixed "read more" word count to ignore HTML (bug #333)
Index: lib-story.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-story.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** lib-story.php 14 Nov 2004 14:06:12 -0000 1.11
--- lib-story.php 10 Dec 2004 09:19:50 -0000 1.12
***************
*** 198,202 ****
$article->set_var( 'lang_readmore', $LANG01[2] );
$article->set_var( 'lang_readmore_words', $LANG01[62] );
! $numwords = sizeof( explode( ' ', $A['bodytext'] ));
$article->set_var( 'readmore_words', $numwords );
--- 198,202 ----
$article->set_var( 'lang_readmore', $LANG01[2] );
$article->set_var( 'lang_readmore_words', $LANG01[62] );
! $numwords = sizeof( explode( ' ', strip_tags( $A['bodytext'] )));
$article->set_var( 'readmore_words', $numwords );
More information about the geeklog-cvs
mailing list