From c99369cdbe2efae595d4621384362002646113ad Mon Sep 17 00:00:00 2001 From: Nis Martensen Date: Thu, 13 Dec 2007 09:56:59 +0100 Subject: [PATCH] Also increment feednum only if feeds are generated --- IkiWiki/Plugin/inline.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}=""; -- 2.26.2