summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-12-06 10:33:27 +0000
committerDries Buytaert <dries@buytaert.net>2001-12-06 10:33:27 +0000
commit4205799ba3a41435aa7d8fed190f03592722eb8f (patch)
tree388631059d3ee8d79cc7aac15600d488575a0e47 /modules
parentfacd9cc5176bf1146ee031c44d000b3806335fde (diff)
downloadbrdo-4205799ba3a41435aa7d8fed190f03592722eb8f.tar.gz
brdo-4205799ba3a41435aa7d8fed190f03592722eb8f.tar.bz2
- Added the "add new comment" link to the forum module.
Diffstat (limited to 'modules')
-rw-r--r--modules/forum.module2
-rw-r--r--modules/forum/forum.module2
2 files changed, 4 insertions, 0 deletions
diff --git a/modules/forum.module b/modules/forum.module
index fe487d9a0..4bdb6a354 100644
--- a/modules/forum.module
+++ b/modules/forum.module
@@ -43,6 +43,8 @@ function forum_link($type) {
function forum_view($node) {
global $theme;
$output .= "<p><a href=\"module.php?mod=forum\">". t("Forum") ."</a> / <b><a href=\"node.php?id=$node->nid\">". check_output($node->title) ."</a></b>:</p><p>". check_output($node->body) ."</p>";
+ $output .= "<p>". $theme->links(link_node($node, $main)) ."</p>";
+
$theme->box(t("Discussion forum"), $output);
}
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index fe487d9a0..4bdb6a354 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -43,6 +43,8 @@ function forum_link($type) {
function forum_view($node) {
global $theme;
$output .= "<p><a href=\"module.php?mod=forum\">". t("Forum") ."</a> / <b><a href=\"node.php?id=$node->nid\">". check_output($node->title) ."</a></b>:</p><p>". check_output($node->body) ."</p>";
+ $output .= "<p>". $theme->links(link_node($node, $main)) ."</p>";
+
$theme->box(t("Discussion forum"), $output);
}