From a597354bcb48536f2c7633d53c78fa931b186c20 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 31 May 2005 21:14:27 +0000 Subject: - Code cleanup: improve format_plural usage, add some missing placeholder/check calls, and introduce API for tags. --- modules/forum/forum.module | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'modules/forum/forum.module') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index f117f6c80..6bb116511 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -825,7 +825,10 @@ function theme_forum_display($forums, $topics, $parents, $tid, $sortby, $forum_p $output .= theme('forum_list', $forums, $parents, $tid); if ($tid && !in_array($tid, variable_get('forum_containers', array()))) { - drupal_set_html_head(''); + drupal_add_link(array('rel' => 'alternate', + 'type' => 'application/rss+xml', + 'title' => 'RSS - '. $title, + 'href' => url('taxonomy/term/'. $tid .'/0/feed'))); $output .= theme('forum_topic_list', $tid, $topics, $sortby, $forum_per_page); $output .= theme('xml_icon', url("taxonomy/term/$tid/0/feed")); @@ -858,7 +861,7 @@ function theme_forum_list($forums, $parents, $tid) { $description .= '
'. l($forum->name, "forum/$forum->tid") ."
\n"; if ($forum->description) { - $description .= "
$forum->description
\n"; + $description .= '
'. check_plain($forum->description) ."
\n"; } $description .= "\n"; @@ -877,7 +880,7 @@ function theme_forum_list($forums, $parents, $tid) { $description .= '
'. l($forum->name, "forum/$forum->tid") ."
\n"; if ($forum->description) { - $description .= "
$forum->description
\n"; + $description .= '
'. check_plain($forum->description) ."
\n"; } $description .= "\n"; -- cgit v1.2.3