inline: Avoid showing edit links if page editing is disabled. (Sjoerd)

master
Joey Hess 2010-01-04 12:54:18 -05:00
parent 4c89a26934
commit aed16b4833
3 changed files with 13 additions and 1 deletions

View File

@ -369,9 +369,12 @@ sub preprocess_inline (@) {
forcesubpage => 1));
}
}
if (length $config{cgiurl} && defined $type) {
if (length $config{cgiurl} &&
defined $type &&
IkiWiki->can("cgi_editpage")) {
$template->param(have_actions => 1);
$template->param(editurl => cgiurl(do => "edit", page => $page));
}
}

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
ikiwiki (3.20100104) UNRELEASED; urgency=low
* inline: Avoid showing edit links if page editing is disabled.
(Sjoerd)
-- Joey Hess <joeyh@debian.org> Mon, 04 Jan 2010 12:53:24 -0500
ikiwiki (3.20100102.3) unstable; urgency=low
Happy palindrome day!

View File

@ -12,3 +12,5 @@ see subject, simple patch below
}
}
</pre>
[[done]] --[[Joey]]