diff options
author | Simon McVittie <smcv@debian.org> | 2014-09-12 21:46:04 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2014-09-12 21:46:04 +0100 |
commit | dadde570a1f735143e9f5909ede743b9aed97444 (patch) | |
tree | 171c29972d0aaa2071601d27d936a404e37db809 /IkiWiki | |
parent | 252804628d7297f756f8587d78a07a61fc00846e (diff) | |
parent | 0357ad66eaf739299db1df38bbddc289c561b034 (diff) | |
download | ikiwiki-dadde570a1f735143e9f5909ede743b9aed97444.tar ikiwiki-dadde570a1f735143e9f5909ede743b9aed97444.tar.gz |
Merge branch 'ready/postform-no'
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 123dfd364..f578526cc 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -329,8 +329,12 @@ sub preprocess_inline (@) { my $ret=""; - if (length $config{cgiurl} && ! $params{preview} && (exists $params{rootpage} || - (exists $params{postform} && yesno($params{postform}))) && + my $postform = (exists $params{rootpage}); + if (exists $params{postform}) { + $postform = yesno($params{postform}); + } + + if (length $config{cgiurl} && ! $params{preview} && $postform && IkiWiki->can("cgi_editpage")) { # Add a blog post form, with feed buttons. my $formtemplate=template_depends("blogpost.tmpl", $params{page}, blind_cache => 1); |