$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>"
$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++;
}
* Add mirrorlist plugin.
* Fixed permissions of some files that were 600 in the tarball. (Did not
affect the deb).
+ * 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.
- -- Joey Hess <joeyh@debian.org> Sat, 23 Dec 2006 00:49:16 -0500
+ -- Joey Hess <joeyh@debian.org> Sat, 23 Dec 2006 01:17:54 -0500
ikiwiki (1.36) unstable; urgency=low
So the bug (I think) is that it has a hyperlink to a CGI when CGI is not enabled.
-(Note that my title above has _63_ but was supposed to be a question mark.)
\ No newline at end of file
+> [[bugs/done]] -- [[Joey]]
+
+(Note that my title above has _63_ but was supposed to be a question mark.)