From: Joey Hess Date: Sun, 27 Jul 2008 23:21:56 +0000 (-0400) Subject: fix cgiurl check X-Git-Tag: 2.60~146 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=73af360e994306c1d0b14a69a4aa04750e61f0ef;p=ikiwiki.git fix cgiurl check --- diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index cdd0ab0dc..ed7a58408 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -247,7 +247,7 @@ sub preprocess_inline (@) { #{{{ my $atomurl=basename(atompage($params{destpage}).$feednum) if $feeds && $atom; my $ret=""; - if ($config{cgiurl} && ! $params{preview} && (exists $params{rootpage} || + if (length $config{cgiurl} && ! $params{preview} && (exists $params{rootpage} || (exists $params{postform} && yesno($params{postform})))) { # Add a blog post form, with feed buttons. my $formtemplate=template("blogpost.tmpl", blind_cache => 1);