From 8c909397d7af99b6898255a93d13a03d0eafb2aa Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 7 Feb 2004 10:57:27 +0000 Subject: - Patch #5501: fixed invalid HTML in the comment and tracker module. --- modules/comment.module | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index 677d1b263..1a6f45b50 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -327,7 +327,7 @@ function comment_post($edit) { ** Add entry to the watchdog log: */ - watchdog("special", "comment: updated '". $edit["subject"] ."'", l(t("view comment"), "node/view/". $edit["nid"], NULL, NULL, $edit["cid"])); + watchdog("special", "comment: updated '". $edit["subject"] ."'", l(t("view comment"), "node/view/". $edit["nid"], NULL, NULL, "comment-". $edit["cid"])); } else { /* @@ -447,7 +447,7 @@ function comment_post($edit) { ** Add entry to the watchdog log: */ - watchdog("special", "comment: added '". $edit["subject"] ."'", l(t("view comment"), "node/view/". $edit["nid"], NULL, NULL, $edit["cid"])); + watchdog("special", "comment: added '". $edit["subject"] ."'", l(t("view comment"), "node/view/". $edit["nid"], NULL, NULL, "comment-". $edit["cid"])); } /* @@ -482,7 +482,7 @@ function comment_links($comment, $return = 1) { */ if ($return) { - $links[] = l(t("parent"), comment_referer_load(), NULL, NULL, $comment->cid); + $links[] = l(t("parent"), comment_referer_load(), NULL, NULL, "comment-$comment->cid"); } if (node_comment_mode($comment->nid) == 2) { @@ -884,7 +884,7 @@ function comment_node_link($node) { $header = array(t("title"), t("author"), array("data" => t("operations"), "colspan" => 3)); while ($comment = db_fetch_object($result)) { - $rows[] = array(l($comment->subject, "node/view/$node->nid", NULL, NULL, $comment->cid), format_name($comment), l(t("view comment"), "node/view/$node->nid", NULL, NULL, $comment->cid), 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/$node->nid", NULL, NULL, "comment-$comment->cid"), format_name($comment), l(t("view comment"), "node/view/$node->nid", NULL, NULL, $comment->cid), l(t("edit comment"), "admin/comment/edit/$comment->cid"), l(t("delete comment"), "admin/comment/delete/$comment->cid")); } if ($rows) { @@ -985,7 +985,7 @@ function comment_admin_overview($status = 0) { $result = pager_query($sql, 50); while ($comment = db_fetch_object($result)) { - $rows[] = array(l($comment->subject, "node/view/$comment->nid/$comment->cid", array("title" => htmlspecialchars(substr($comment->comment, 0, 128))), NULL, $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(substr($comment->comment, 0, 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())) { @@ -1284,7 +1284,7 @@ function theme_comment_view($comment, $links = "", $visible = 1) { $output .= "\n"; } - $output .= "cid\">\n"; + $output .= "cid\">\n"; if ($visible) { $comment->comment = check_output($comment->comment); @@ -1404,7 +1404,7 @@ function theme_comment($comment, $links = 0) { } function theme_comment_folded($comment) { - return "
". l($comment->subject, comment_referer_load() ."/$comment->cid", NULL, NULL, $comment->cid) ." ". t("by") ." ". format_name($comment) ."
"; + return "
". l($comment->subject, comment_referer_load() ."/$comment->cid", NULL, NULL, "comment-$comment->cid") ." ". t("by") ." ". format_name($comment) ."
"; } function theme_comment_flat_collapsed($comment, $threshold) { -- cgit v1.2.3