inline: Avoid showing edit links if page editing is disabled. (Sjoerd)
parent
4c89a26934
commit
aed16b4833
|
@ -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));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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!
|
||||
|
|
|
@ -12,3 +12,5 @@ see subject, simple patch below
|
|||
}
|
||||
}
|
||||
</pre>
|
||||
|
||||
[[done]] --[[Joey]]
|
||||
|
|
Loading…
Reference in New Issue