From 08d0bd73384b79b5c21f75b06a982fc62998a0c2 Mon Sep 17 00:00:00 2001 From: joey Date: Sat, 12 May 2007 17:56:56 +0000 Subject: * Patch from hb to fix the pagestats plugin, which was broken by a past change to the backlinks() function. --- IkiWiki/Plugin/pagestats.pm | 2 +- debian/changelog | 4 +++- doc/bugs/pagestats_plugin_broken.mdwn | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/IkiWiki/Plugin/pagestats.pm b/IkiWiki/Plugin/pagestats.pm index f6398c535..fdda5767a 100644 --- a/IkiWiki/Plugin/pagestats.pm +++ b/IkiWiki/Plugin/pagestats.pm @@ -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; } } diff --git a/debian/changelog b/debian/changelog index 742ec135a..52c16393f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Fri, 11 May 2007 15:35:12 -0400 + -- Joey Hess Sat, 12 May 2007 13:55:19 -0400 ikiwiki (2.00) unstable; urgency=low diff --git a/doc/bugs/pagestats_plugin_broken.mdwn b/doc/bugs/pagestats_plugin_broken.mdwn index cad68fa06..0ae74b4ee 100644 --- a/doc/bugs/pagestats_plugin_broken.mdwn +++ b/doc/bugs/pagestats_plugin_broken.mdwn @@ -24,4 +24,6 @@ Patch is : ---[[users/hb]] \ No newline at end of file +--[[users/hb]] + +thanks, [[done]] --[[Joey]] -- cgit v1.2.3