From: Nis Martensen Date: Thu, 13 Dec 2007 08:58:55 +0000 (+0100) Subject: rssurl and atomurl are only needed where $feeds is set X-Git-Tag: 2.16~24 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/723a10b5b16d87f118bea4c6afaa8d5f60ba5947 rssurl and atomurl are only needed where $feeds is set --- diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 3c0c6f140..b28ad27a8 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -173,8 +173,10 @@ sub preprocess_inline (@) { #{{{ } } - my $rssurl=basename(rsspage($params{destpage}).$feednum); - my $atomurl=basename(atompage($params{destpage}).$feednum); + if ($feeds) { + my $rssurl=basename(rsspage($params{destpage}).$feednum); + my $atomurl=basename(atompage($params{destpage}).$feednum); + } my $ret=""; if ($config{cgiurl} && (exists $params{rootpage} ||