]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
correct variable scoping error in nils's patch
authorJoey Hess <joey@kitenet.net>
Sun, 16 Dec 2007 21:07:52 +0000 (16:07 -0500)
committerJoey Hess <joey@kitenet.net>
Sun, 16 Dec 2007 21:07:52 +0000 (16:07 -0500)
IkiWiki/Plugin/inline.pm

index b28ad27a8e01c32a17d5fc979c3f9c2b85156b74..b16636a705b80b39404476e0ebfe448561ad6c22 100644 (file)
@@ -173,10 +173,8 @@ sub preprocess_inline (@) { #{{{
                }
        }
 
-       if ($feeds) {
-               my $rssurl=basename(rsspage($params{destpage}).$feednum);
-               my $atomurl=basename(atompage($params{destpage}).$feednum);
-       }
+       my $rssurl=basename(rsspage($params{destpage}).$feednum) if $feeds && $rss;
+       my $atomurl=basename(atompage($params{destpage}).$feednum) if $feeds && $atom;
        my $ret="";
 
        if ($config{cgiurl} && (exists $params{rootpage} ||