Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15532
Modified Files:
serendipity_functions.inc.php
Log Message:
Fixed comment number not calculated correct when subreplies exist
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.306
retrieving revision 1.307
diff -u -d -r1.306 -r1.307
--- serendipity_functions.inc.php 24 Jun 2004 20:00:53 -0000 1.306
+++ serendipity_functions.inc.php 1 Jul 2004 20:50:22 -0000 1.307
@@ -1412,10 +1412,8 @@
$i = 0;
foreach ($comments as $comment) {
- $i++;
-
if (!isset($comment['parent_id']) || $comment['parent_id'] == $parentid) {
-
+ $i++;
$comment['comment'] = htmlspecialchars(strip_tags($comment['body']));
if (!empty($comment['url']) && substr($comment['url'], 0, 7) != 'http://' && substr($comment['url'], 0, 8) != 'https://') {
$comment['url'] = 'http://' . $comment['url'];
|