summaryrefslogtreecommitdiff
path: root/doc/bugs/inline_plugin_sets_editurl_even_when_editpage_is_disabled.html
blob: 62c91a932b821faf6d2313877f2704af0dcaa22d (plain)
  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 (@) {
  6. }
  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");
  12. }
  13. }
  14. </pre>
  15. [[done]] --[[Joey]]