From 8043cb998f3325731bfab8d82251fa49639aec1d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 20 Apr 2002 11:52:50 +0000 Subject: - Applied Marco's big patch, including contributions from Moshe: + Changed the db_query() API. + Wrapped all links in l(), lm(), la(), ..., drupal_url() functions. + XHTML-ified some HTML. + Wrapped a lot of text in the administrative pages in a t() function. + Replaced all $REQUEST_URI/$PATH_INFOs by request_uri(). + Small bugfixes (eg. bug in book_export_html() and clean-ups (eg. RSS code). + Fixed some bugs in the taxonomy module (eg. tree making bug), added new functionality (eg. new APIs for use by other modules), included Moshe's taxonomy extensions, and some documentation udpates. + ... --- modules/forum.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/forum.module') diff --git a/modules/forum.module b/modules/forum.module index 658f45f78..3c2d5c5c7 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -35,11 +35,11 @@ function forum_save($op, $node) { function forum_link($type) { if ($type == "page" && user_access("access content")) { - $links[] = "". t("forum") .""; + $links[] = lm(t("forum"), array("mod" => "forum"), t("Read and participate in the discussion forums.")); } if ($type == "menu.create" && user_access("administer nodes")) { - $links[] = "". t("create forum") .""; + $links[] = lm(t("create forum"), array("mod" => "node", "op" => "add", "type" => "forum"), t("Add a new discussion forum.")); } return $links ? $links : array(); @@ -47,7 +47,7 @@ function forum_link($type) { function forum_view($node) { global $theme; - $output .= "

". t("Forum") ." / nid\">". check_output($node->title) .":

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

"; + $output .= "

".lm(t("Forum"), array("mod" => "forum"))." / ".l(check_output($node->title), array("id" => $node->nid)).":

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

"; $output .= "

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

"; $theme->box(t("Discussion forum"), $output); @@ -81,7 +81,7 @@ function forum_page() { $output .= " ". t("Forum") ."". t("Comments") ."". t("Last comment") .""; while ($node = db_fetch_object($result)) { $node = node_load(array("nid" => $node->nid)); - $output .= " nid\">". check_output($node->title) ."
". check_output($node->body, 1) ."". forum_num_comments($node->nid) ."". forum_last_comment($node->nid) .""; + $output .= " ".l(check_output($node->title), array("id" => $node->nid))."
". check_output($node->body, 1) ."". forum_num_comments($node->nid) ."". forum_last_comment($node->nid) .""; } $output .= ""; -- cgit v1.2.3