]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
* Patch from hb to fix the pagestats plugin, which was broken by a past
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 12 May 2007 17:56:56 +0000 (17:56 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 12 May 2007 17:56:56 +0000 (17:56 +0000)
  change to the backlinks() function.

IkiWiki/Plugin/pagestats.pm
debian/changelog
doc/bugs/pagestats_plugin_broken.mdwn

index f6398c535f29ce2768e7389bf4d8b7581407d61a..fdda5767a1266d980443788cfa8e2c576aa57713 100644 (file)
@@ -36,7 +36,7 @@ sub preprocess (@) { #{{{
                if (pagespec_match($page, $params{pages}, location => $params{page})) {
                        use IkiWiki::Render;
                        my @bl = IkiWiki::backlinks($page);
-                       $counts{$page} = scalar(@bl);
+                       $counts{$page} = scalar(@{$bl[0]})+scalar(@{$bl[1]});
                        $max = $counts{$page} if $counts{$page} > $max;
                }
        }
index 742ec135a1da2583752e9c5735f0c8c80fdec64b..52c16393fb2b8b9477b86af5d643ac68f7e10e2d 100644 (file)
@@ -30,8 +30,10 @@ ikiwiki (2.1) UNRELEASED; urgency=low
     inconsistencies.
   * Allow WIKINAME to to used in footers, as an example of something to put
     there.
+  * Patch from hb to fix the pagestats plugin, which was broken by a past
+    change to the backlinks() function.
 
- -- Joey Hess <joeyh@debian.org>  Fri, 11 May 2007 15:35:12 -0400
+ -- Joey Hess <joeyh@debian.org>  Sat, 12 May 2007 13:55:19 -0400
 
 ikiwiki (2.00) unstable; urgency=low
 
index cad68fa06c7782b13d197af8301c5182d836f096..0ae74b4eeae16b64fe7564d2cfbe56535824f79f 100644 (file)
@@ -24,4 +24,6 @@ Patch is :
 
 
 
---[[users/hb]]
\ No newline at end of file
+--[[users/hb]]
+
+thanks, [[done]] --[[Joey]]