aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorNis Martensen <nis.martensen@web.de>2007-12-13 09:56:59 +0100
committerJoey Hess <joey@kitenet.net>2007-12-16 16:04:28 -0500
commitc99369cdbe2efae595d4621384362002646113ad (patch)
tree416dd50fb8b8ddb35f70e6204ad0bd30138240e8 /IkiWiki/Plugin
parent9459cc55abf94171b96f72c954032c6383fda0c3 (diff)
downloadikiwiki-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.pm4
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}="";