fix cgiurl check
authorJoey Hess <joey@kodama.kitenet.net>
Sun, 27 Jul 2008 23:21:56 +0000 (19:21 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Sun, 27 Jul 2008 23:21:56 +0000 (19:21 -0400)
IkiWiki/Plugin/inline.pm

index cdd0ab0dc2b7cf86ae3b5c7367bd24fe980d2462..ed7a584083aeb1cc1b55c321851a094664acb608 100644 (file)
@@ -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);