summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2007-12-16 16:07:52 -0500
committerJoey Hess <joey@kitenet.net>2007-12-16 16:07:52 -0500
commit1d60cb322d6b30baba376179cb336b8b94f1626b (patch)
tree19eb0b08436ceb80ac4cad441e3095affb08ee8e /IkiWiki/Plugin
parent723a10b5b16d87f118bea4c6afaa8d5f60ba5947 (diff)
correct variable scoping error in nils's patch
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/inline.pm6
1 files 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} ||