From 1d60cb322d6b30baba376179cb336b8b94f1626b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 16 Dec 2007 16:07:52 -0500 Subject: [PATCH] correct variable scoping error in nils's patch --- IkiWiki/Plugin/inline.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index b28ad27a8..b16636a70 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -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} ||