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/forum.module | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'modules/forum.module') diff --git a/modules/forum.module b/modules/forum.module index d87ad5fd1..dc867b28e 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -180,16 +180,16 @@ function forum_view($node, $main = 0) { /* TODO: find out what this code was ment to do and either use it or not. - $output .= "

"._forum_get_icon($node)." ".lm(check_output($voc->name), array("mod" => "forum"))." : ".lm(check_output($term_data->name), array("mod" => "forum", "tid" => $term_data->tid)); + $output .= "

". _forum_get_icon($node) ." ". lm($voc->name, array("mod" => "forum")) ." : ". lm($term_data->name, array("mod" => "forum", "tid" => $term_data->tid)); - $output .= " / ". check_output($node->title) ."
".t("%a by %b", array("%a" => format_date($node->created), "%b" => format_name($node)))."

". check_output($node->body, 1) ."

"; + $output .= " / $node->title
".t("%a by %b", array("%a" => format_date($node->created), "%b" => format_name($node)))."

". check_output($node->body) ."

"; $output .= "

". $theme->links(link_node($node, $main)) ."

"; #$theme->box(t("Discussion forum"), $output); */ if (!$main) { - $node->title = _forum_get_icon($node)." ".lm(check_output($voc->name), array("mod" => "forum"))." : ".lm(check_output($term_data->name), array("mod" => "forum", "tid" => $term_data->tid)) . " / ". check_output($node->title) .""; + $node->title = _forum_get_icon($node) ." ". lm($voc->name, array("mod" => "forum")) ." : ". lm($term_data->name, array("mod" => "forum", "tid" => $term_data->tid)) ." / $node->title"; } $theme->node($node, $main); @@ -568,13 +568,13 @@ function forum_forum_list($forums, $parents, $tid) { foreach ($forums as $forum) { if ($forum->container) { - $output .= " ". lm(check_output($forum->name), array("mod" => "forum", "tid" => $forum->tid))."
". ($forum->description ? check_output($forum->description, 1) : "") .""; + $output .= " ". lm($forum->name, array("mod" => "forum", "tid" => $forum->tid)) ."
". ($forum->description ? check_output($forum->description) : "") .""; } else { if ($user->uid) $new_topics = $forum->num_topics - $forum->old_topics; $icon = _forum_get_folder_icon($new_topics); $output .= "  $icon"; - $output .= "
depth * 20) ."\"> ".lm(check_output($forum->name), array("mod" => "forum", "tid" => $forum->tid))."
". check_output($forum->description, 1); + $output .= "
- + "; } @@ -652,7 +652,7 @@ function forum_topic_list($topics, $num_topics, $sortby, $forum_per_page, $offse - + @@ -691,7 +691,7 @@ function forum_topic_list($topics, $num_topics, $sortby, $forum_per_page, $offse function _forum_get_icon($node) { if (variable_get("forum_topic_icon_path", "") && $node->icon) { - return "icon)."\">"; + return "icon\" />"; } else { return " "; -- cgit v1.2.3
depth * 20) ."\"> ". lm($forum->name, array("mod" => "forum", "tid" => $forum->tid))."
". check_output($forum->description); $links = array(); if ($forum->last_post) { @@ -643,7 +643,7 @@ function forum_topic_list($topics, $num_topics, $sortby, $forum_per_page, $offse
"._forum_get_folder_icon($topic->new, $topic->num_comments, $topic->comment_mode)." "._forum_get_icon($topic)."". check_output($topic->title) ."$topic->title ".lm(t("This topic has been moved"), array("mod" => "forum", "tid" => $topic->shadow))."
"._forum_get_folder_icon($topic->new, $topic->num_comments, $topic->comment_mode)." "._forum_get_icon($topic)."".l(check_output($topic->title), array("id" => $topic->nid))."". l($topic->title, array("id" => $topic->nid))." ".$topic->num_comments.($topic->new_replies ? " (".t("%a new", array("%a" => $topic->new_replies)).")" : "")." "._forum_format($topic)." "._forum_format($topic->last_reply)."