correct variable scoping error in nils's patch

master
Joey Hess 2007-12-16 16:07:52 -05:00
parent 723a10b5b1
commit 1d60cb322d
1 changed files with 2 additions and 4 deletions

View 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} ||