diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-12-23 06:18:55 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-12-23 06:18:55 +0000 |
commit | 829e0b1b65529975131f3095333963cce5b0eea4 (patch) | |
tree | 16039cd6142651bf0acba7d8d28c8f3b8c66d2be /IkiWiki | |
parent | be81a25cc525680706a37d73cbe115e11d8a7a9a (diff) | |
download | ikiwiki-829e0b1b65529975131f3095333963cce5b0eea4.tar ikiwiki-829e0b1b65529975131f3095333963cce5b0eea4.tar.gz |
* 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.pm | 2 |
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++; } |