summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-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} ||