summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-06-02 05:35:51 +0000
committerDries Buytaert <dries@buytaert.net>2004-06-02 05:35:51 +0000
commitcd48e69b29ebb50699813b3ba92d6fc92793e04f (patch)
tree7e42b8a5ab04c633db961f985d3425f321b2e092 /modules/comment
parentfbbf51051159d9ace934d206f63e5b3061c0a767 (diff)
downloadbrdo-cd48e69b29ebb50699813b3ba92d6fc92793e04f.tar.gz
brdo-cd48e69b29ebb50699813b3ba92d6fc92793e04f.tar.bz2
- Patches #6863 by Kristjan and Moshe: implemented pretty tables and fixed some tablesort glitches.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module9
1 files changed, 8 insertions, 1 deletions
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")) ."</td><td>". format_date($comment->timestamp, "small") ."</td><td>". 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())) {