diff options
author | Nis Martensen <nis.martensen@web.de> | 2007-12-13 09:56:59 +0100 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2007-12-16 16:04:28 -0500 |
commit | c99369cdbe2efae595d4621384362002646113ad (patch) | |
tree | 416dd50fb8b8ddb35f70e6204ad0bd30138240e8 /IkiWiki/Plugin | |
parent | 9459cc55abf94171b96f72c954032c6383fda0c3 (diff) | |
download | ikiwiki-c99369cdbe2efae595d4621384362002646113ad.tar ikiwiki-c99369cdbe2efae595d4621384362002646113ad.tar.gz |
Also increment feednum only if feeds are generated
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 3a03b554a..3c0c6f140 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -161,7 +161,9 @@ sub preprocess_inline (@) { #{{{ } else { if (exists $page_numfeeds{$params{destpage}}) { - $feednum=$knownfeeds{$feedid}=++$page_numfeeds{$params{destpage}}; + if ($feeds) { + $feednum=$knownfeeds{$feedid}=++$page_numfeeds{$params{destpage}}; + } } else { $feednum=$knownfeeds{$feedid}=""; |