diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-06-13 08:47:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-06-13 08:47:35 +0000 |
commit | a7f9a38acf5da59ee70101c6accac566b355921d (patch) | |
tree | 356434b9bb8469190bca6e0b62fcecc425b51771 | |
parent | 9c5cd7e2ab5986514502dc90d21141ad0330c755 (diff) | |
download | brdo-a7f9a38acf5da59ee70101c6accac566b355921d.tar.gz brdo-a7f9a38acf5da59ee70101c6accac566b355921d.tar.bz2 |
- Applied Remco's patch, but added a closing </LI>-tag as well.
-rw-r--r-- | includes/comment.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/comment.inc b/includes/comment.inc index 838814d8a..8afe7fe7e 100644 --- a/includes/comment.inc +++ b/includes/comment.inc @@ -253,12 +253,12 @@ function comment_thread_min($cid, $threshold) { $result = db_query("SELECT c.*, u.* FROM comments c LEFT JOIN users u ON c.author = u.id WHERE c.pid = '$cid' ORDER BY c.timestamp, c.cid"); - print "<UL>"; while ($comment = db_fetch_object($result)) { - comment_view($comment); + print "<UL>"; + print " <LI>". comment_view($comment) .</LI>\n"; comment_thread_min($comment->cid, $threshold); + print "</UL>"; } - print "</UL>"; } function comment_thread_max($cid, $mode, $threshold, $level = 0, $dummy = 0) { @@ -266,12 +266,12 @@ function comment_thread_max($cid, $mode, $threshold, $level = 0, $dummy = 0) { $result = db_query("SELECT c.*, u.* FROM comments c LEFT JOIN users u ON c.author = u.id WHERE c.pid = '$cid' ORDER BY c.timestamp, c.cid"); - print "<UL>"; while ($comment = db_fetch_object($result)) { + print "<UL>"; comment_view($comment, (comment_visible($comment, $threshold) ? comment_link($comment, 0) : 0)); comment_thread_max($comment->cid, $mode, $threshold, $level + 1, $dummy + 1); - } print "</UL>"; + } } function comment_render($lid, $cid) { |