aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
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.pm
parentbe81a25cc525680706a37d73cbe115e11d8a7a9a (diff)
downloadikiwiki-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.pm')
-rw-r--r--IkiWiki.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 9f6c3bb1f..b8f3e7a55 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -413,6 +413,7 @@ sub htmllink ($$$;$$$) { #{{{
$bestlink=htmlpage($bestlink);
}
if (! grep { $_ eq $bestlink } map { @{$_} } values %renderedfiles) {
+ return $linktext unless $config{cgi};
return "<span><a href=\"".
cgiurl(do => "create", page => lc($link), from => $page).
"\">?</a>$linktext</span>"