diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-12-29 19:49:11 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-12-29 19:49:11 +0000 |
commit | 21a0e8b904274aa3f31c60b4b4ec31f52f248ded (patch) | |
tree | 5a9e18f2c804bedee031646e751f6e6371eb6b8d /modules/comment.module | |
parent | be2f4058189a54fb2bd1ad8309efa8d75d297b81 (diff) | |
download | brdo-21a0e8b904274aa3f31c60b4b4ec31f52f248ded.tar.gz brdo-21a0e8b904274aa3f31c60b4b4ec31f52f248ded.tar.bz2 |
- Updated code to use new semantics of url() and l().
Diffstat (limited to 'modules/comment.module')
-rw-r--r-- | modules/comment.module | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/comment.module b/modules/comment.module index c7eef8a01..b90e05cff 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -356,7 +356,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"] ."#". $edit["cid"])); + watchdog("special", "comment: updated '". $edit["subject"] ."'", l(t("view comment"), "node/view/". $edit["nid"], NULL, NULL, $edit["cid"])); } else { /* @@ -476,7 +476,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"] ."#". $edit["cid"])); + watchdog("special", "comment: added '". $edit["subject"] ."'", l(t("view comment"), "node/view/". $edit["nid"], NULL, NULL, $edit["cid"])); } /* @@ -511,7 +511,7 @@ function comment_links($comment, $return = 1) { */ if ($return) { - $links[] = l(t("parent"), comment_referer_load() ."#$comment->cid"); + $links[] = l(t("parent"), comment_referer_load(), NULL, NULL, $comment->cid); } if (node_comment_mode($comment->nid) == 2) { @@ -789,10 +789,10 @@ function comment_link($type, $node = 0, $main = 0) { $new = comment_num_new($node->nid); if ($all) { - $links[] = l(format_plural($all, "1 comment", "%count comments"), "node/view/$node->nid#comment", array("title" => t("Jump to the first comment of this posting."))); + $links[] = l(format_plural($all, "1 comment", "%count comments"), "node/view/$node->nid", array("title" => t("Jump to the first comment of this posting.")), NULL, "comment"); if ($new) { - $links[] = l(format_plural($new, "1 new comment", "%count new comments"), "node/view/$node->nid#new", array("title" => t("Jump to the first new comment of this posting."))); + $links[] = l(format_plural($new, "1 new comment", "%count new comments"), "node/view/$node->nid", array("title" => t("Jump to the first new comment of this posting.")), NULL, "new"); } } else { @@ -815,7 +815,7 @@ function comment_link($type, $node = 0, $main = 0) { if ($node->comment == 2) { if (user_access("post comments")) { - $links[] = l(t("add new comment"), "comment/reply/$node->nid#comment", array("title" => t("Share your thoughts and opinions related to this posting."))); + $links[] = l(t("add new comment"), "comment/reply/$node->nid", array("title" => t("Share your thoughts and opinions related to this posting.")), NULL, "comment"); } else { $links[] = theme("comment_post_forbidden"); @@ -913,7 +913,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#$comment->cid"), format_name($comment), l(t("view comment"), "node/view/$node->nid#$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->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) { @@ -1013,7 +1013,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#$comment->cid", array("title" => htmlspecialchars(substr($comment->comment, 0, 128)))) ." ". (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(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")) ."</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")); } if ($pager = theme("pager", NULL, 50, 0, tablesort_pager())) { @@ -1402,7 +1402,7 @@ function theme_comment($comment, $links = 0) { } function theme_comment_folded($comment) { - return "<div class=\"comment-folded\"><span class=\"subject\">". l($comment->subject, comment_referer_load() ."/$comment->cid#$comment->cid") ."</span> <span class=\"credit\">". t("by") ." ". format_name($comment) ."</span></div>"; + return "<div class=\"comment-folded\"><span class=\"subject\">". l($comment->subject, comment_referer_load() ."/$comment->cid", NULL, NULL, $comment->cid) ."</span> <span class=\"credit\">". t("by") ." ". format_name($comment) ."</span></div>"; } function theme_comment_flat_collapsed($comment, $threshold) { |