Set page_numfeeds only if feeds are being generated
authorNis Martensen <nis.martensen@web.de>
Thu, 6 Dec 2007 12:06:21 +0000 (13:06 +0100)
committerJoey Hess <joey@kitenet.net>
Wed, 12 Dec 2007 21:54:09 +0000 (16:54 -0500)
IkiWiki/Plugin/inline.pm

index ebeb231783fbe950fce33f04cac59e01ed655456..3a03b554aeb60bf13637bc0d9bbfb441980d0608 100644 (file)
@@ -165,7 +165,9 @@ sub preprocess_inline (@) { #{{{
                }
                else {
                        $feednum=$knownfeeds{$feedid}="";
-                       $page_numfeeds{$params{destpage}}=1;
+                       if ($feeds) {
+                               $page_numfeeds{$params{destpage}}=1;
+                       }
                }
        }