From de95001c9291d6f2e66374975b793f84dc155aca Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 31 Dec 2002 12:34:07 +0000 Subject: - Tidied up the use of check_output(). Might make rendering pages a bit snappier (performance improvement). --- modules/comment/comment.module | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 9de5302a9..d27f36d7d 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -45,12 +45,12 @@ function comment_user($type, $edit, &$user) { switch ($type) { case "view_public": if ($user->signature) { - return form_item(t("Signature"), check_output($user->signature, 1)); + return form_item(t("Signature"), check_output($user->signature)); } break; case "view_private": if ($user->signature) { - return form_item(t("Signature"), check_output($user->signature, 1)); + return form_item(t("Signature"), check_output($user->signature)); } break; case "edit_form": @@ -795,7 +795,7 @@ function comment_admin_overview($status = 0) { $header = array(t("subject"), t("author"), t("status"), array("data" => t("operations"), "colspan" => 2)); while ($comment = db_fetch_object($result)) { - $rows[] = array(l(check_output($comment->subject), array("id" => $comment->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid, array("title" => htmlentities(substr($comment->comment, 0, 128)))) ." ". (comment_is_new($comment) ? theme_mark() : ""), format_name($comment), ($comment->status == 0 ? t("published") : t("not published")) ."". la(t("edit comment"), array("mod" => "comment", "op" => "edit", "id" => $comment->cid)), la(t("delete comment"), array("mod" => "comment", "op" => "delete", "id" => $comment->cid))); + $rows[] = array(l($comment->subject, array("id" => $comment->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid, array("title" => htmlentities(substr($comment->comment, 0, 128)))) ." ". (comment_is_new($comment) ? theme_mark() : ""), format_name($comment), ($comment->status == 0 ? t("published") : t("not published")) ."". la(t("edit comment"), array("mod" => "comment", "op" => "edit", "id" => $comment->cid)), la(t("delete comment"), array("mod" => "comment", "op" => "delete", "id" => $comment->cid))); } if ($pager = pager_display(NULL, 50, 0, "admin")) { @@ -1153,9 +1153,9 @@ function comment($comment, $link = 0) { $output .= "cid\">"; $output .= "
"; $output .= ""; - $output .= " "; + $output .= " "; $output .= " "; - $output .= " "; + $output .= " "; $output .= " "; $output .= "
". check_output($comment->subject) . ($comment->new ? theme_invoke("theme_mark") : "") ."
". $comment->moderation ."
$comment->subject ". ($comment->new ? theme_invoke("theme_mark") : "") ."
". $comment->moderation ."
". t("by %a on %b", array("%a" => format_name($comment), "%b" => format_date($comment->timestamp))) ."
". check_output($comment->comment, 1) ."
". check_output($comment->comment) ."
$link
"; $output .= "

"; @@ -1163,7 +1163,7 @@ function comment($comment, $link = 0) { } function comment_folded($comment) { - print l(check_output($comment->subject), array("id" => $comment->nid, "cid" => $comment->cid), "node", $comment->cid) ." ". t("by") . " " . format_name($comment) ."

"; + print l($comment->subject, array("id" => $comment->nid, "cid" => $comment->cid), "node", $comment->cid) ." ". t("by") . " " . format_name($comment) ."

"; } function comment_flat_collapsed($comments, $threshold) { -- cgit v1.2.3