Added my site, even though it's in an early state
[ikiwiki.git] / doc / bugs / inline_plugin_sets_editurl_even_when_editpage_is_disabled.html
blob62c91a932b821faf6d2313877f2704af0dcaa22d
1 see subject, simple patch below
2 <pre>
3 --- a/IkiWiki/Plugin/inline.pm
4 +++ b/IkiWiki/Plugin/inline.pm
5 @@ -371,7 +371,8 @@ sub preprocess_inline (@) {
7 if (length $config{cgiurl} && defined $type) {
8 $template->param(have_actions => 1);
9 - $template->param(editurl => cgiurl(do => "edit", page => $page));
10 + $template->param(editurl => cgiurl(do => "edit", page => $page))
11 + if IkiWiki->can("cgi_editpage");
14 </pre>
16 [[done]] --[[Joey]]