I have "fixed" (well, I should say "workarounded") the bug who showed double replies/comments in forum.module.
Just add "/2" in interesting lines, in this way:


array('data' => _forum_icon($topic->new, $topic->num_comments/2, $topic->comment_mode), 'class' => 'icon'),

array('data' => _forum_icon($topic->new, $topic->num_comments/2, $topic->comment_mode), 'class' => 'icon'),

array('data' => $topic->num_comments/2 . ($topic->new_replies ? "
". l(t('%a new', array('%a' => $topic->new_replies)), "node/view/$topic->nid", NULL, NULL, 'new') : ''), 'class' => 'replies'),

...then the number of lines will be the right one.

Comments

dries’s picture

Please file a bug report instead - and if possible - file a patch. Thanks.

febs’s picture

Sorry for having posted in the wrong place. Anyway, this just works around the bug and does not fix it. I think the solution should be into the "num_comments" function but I just don't know how...
sorry :)
Oh, and thank you for your beautiful code.