diff options
author | Sjoerd <Sjoerd@web> | 2010-01-03 21:37:37 +0000 |
---|---|---|
committer | Joey Hess <joey@finch.kitenet.net> | 2010-01-03 21:37:37 +0000 |
commit | 0fae8d8b69ab191f98608f1dad224a6c6f99d858 (patch) | |
tree | 621d4ef27c00691270fcd6d5a916771a9f268840 /doc/bugs | |
parent | 2ffa1a31ba0c3009ee5e1c158ba6b455d4cc7e9c (diff) | |
download | ikiwiki-0fae8d8b69ab191f98608f1dad224a6c6f99d858.tar ikiwiki-0fae8d8b69ab191f98608f1dad224a6c6f99d858.tar.gz |
Diffstat (limited to 'doc/bugs')
-rw-r--r-- | doc/bugs/inline_plugin_sets_editurl_even_when_editpage_is_disabled.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/bugs/inline_plugin_sets_editurl_even_when_editpage_is_disabled.html b/doc/bugs/inline_plugin_sets_editurl_even_when_editpage_is_disabled.html new file mode 100644 index 000000000..e4e37b34a --- /dev/null +++ b/doc/bugs/inline_plugin_sets_editurl_even_when_editpage_is_disabled.html @@ -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> |