summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-12-23 06:18:55 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-12-23 06:18:55 +0000
commit829e0b1b65529975131f3095333963cce5b0eea4 (patch)
tree16039cd6142651bf0acba7d8d28c8f3b8c66d2be /IkiWiki
parentbe81a25cc525680706a37d73cbe115e11d8a7a9a (diff)
* Avoid creating edit links when not in cgi mode.
* Avoid displaying discussion links at all, if there's not a discussion page, when not in cgi mode.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Render.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 4033468b2..6d19a1dd3 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -93,7 +93,7 @@ sub genpage ($$$) { #{{{
$template->param(historyurl => $u);
$actions++;
}
- if ($config{discussion}) {
+ if ($config{discussion} && ($config{cgi} || exists $links{"$page/discussion"})) {
$template->param(discussionlink => htmllink($page, $page, "Discussion", 1, 1));
$actions++;
}