From cd48e69b29ebb50699813b3ba92d6fc92793e04f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 2 Jun 2004 05:35:51 +0000 Subject: - Patches #6863 by Kristjan and Moshe: implemented pretty tables and fixed some tablesort glitches. --- modules/comment/comment.module | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/comment') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 86ac2d363..03ab6b0b8 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1017,7 +1017,14 @@ function comment_admin_overview($status = 0) { while ($comment = db_fetch_object($result)) { $comment->name = $comment->registered_name ? $comment->registered_name : $comment->name; - $rows[] = array(l($comment->subject, "node/view/$comment->nid/$comment->cid", array("title" => htmlspecialchars(truncate_utf8($comment->comment, 128))), NULL, "comment-$comment->cid") ." ". (node_is_new($comment->nid, $comment->timestamp) ? theme("mark") : ""), format_name($comment), ($comment->status == 0 ? t("published") : t("not published")) ."". format_date($comment->timestamp, "small") ."". l(t("edit comment"), "admin/comment/edit/$comment->cid"), l(t("delete comment"), "admin/comment/delete/$comment->cid")); + $rows[] = array( + l($comment->subject, "node/view/$comment->nid/$comment->cid", array("title" => htmlspecialchars(truncate_utf8($comment->comment, 128))), NULL, "comment-$comment->cid") ." ". (node_is_new($comment->nid, $comment->timestamp) ? theme("mark") : ""), + format_name($comment), + ($comment->status == 0 ? t("published") : t("not published")), + format_date($comment->timestamp, "small"), + l(t("edit comment"), "admin/comment/edit/$comment->cid"), + l(t("delete comment"), "admin/comment/delete/$comment->cid") + ); } if ($pager = theme("pager", NULL, 50, 0, tablesort_pager())) { -- cgit v1.2.3