Sjoerd 2010-01-03 21:37:37 +00:00 committed by Joey Hess
parent 2ffa1a31ba
commit 0fae8d8b69
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
see subject, simple patch below
<pre>
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -371,7 +371,8 @@ sub preprocess_inline (@) {
}
if (length $config{cgiurl} && defined $type) {
$template->param(have_actions => 1);
- $template->param(editurl => cgiurl(do => "edit", page => $page));
+ $template->param(editurl => cgiurl(do => "edit", page => $page))
+ if IkiWiki->can("cgi_editpage");
}
}
</pre>