aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/inline_plugin_sets_editurl_even_when_editpage_is_disabled.html
blob: 62c91a932b821faf6d2313877f2704af0dcaa22d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>

[[done]] --[[Joey]]