From: Penny Leach Date: Sat, 24 Jun 2006 09:41:45 +0000 (+1200) Subject: substring comment trace to 0,5 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=46e0c5c4d00b0a73666421a61caace4d5fedec88;p=s9y.git substring comment trace to 0,5 --- diff --git a/include/functions_comments.inc.php b/include/functions_comments.inc.php index bf4d608..7f51861 100644 --- a/include/functions_comments.inc.php +++ b/include/functions_comments.inc.php @@ -194,7 +194,7 @@ function serendipity_generateCommentList($id, $comments = NULL, $selected = 0, $ foreach ($comments as $comment) { if ($comment['parent_id'] == $parent) { $i++; - $retval .= '\n"; + $retval .= '\n"; $retval .= serendipity_generateCommentList($id, $comments, $selected, $comment['id'], $level + 1, $indent . $i . '.'); } } @@ -263,6 +263,7 @@ function serendipity_printComments($comments, $parentid = 0, $depth = 0, $trace $comment['body'] = $comment['comment']; $comment['pos'] = $i; $comment['trace'] = $trace . $i; + $comment['trace'] = substr($comment['trace'],0,5); $comment['depth'] = $depth; $comment['author'] = htmlspecialchars($comment['author']);