diff options
author | Nis Martensen <nis.martensen@web.de> | 2007-12-13 09:58:55 +0100 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2007-12-16 16:04:38 -0500 |
commit | 723a10b5b16d87f118bea4c6afaa8d5f60ba5947 (patch) | |
tree | 3661372a12c2afb9c909205981ef74260a2cb3d7 /IkiWiki | |
parent | c99369cdbe2efae595d4621384362002646113ad (diff) | |
download | ikiwiki-723a10b5b16d87f118bea4c6afaa8d5f60ba5947.tar ikiwiki-723a10b5b16d87f118bea4c6afaa8d5f60ba5947.tar.gz |
rssurl and atomurl are only needed where $feeds is set
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 6 |
1 files changed, 4 insertions, 2 deletions
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} || |