Also increment feednum only if feeds are generated

master
Nis Martensen 2007-12-13 09:56:59 +01:00 committed by Joey Hess
parent 9459cc55ab
commit c99369cdbe
1 changed files with 3 additions and 1 deletions

View File

@ -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}="";