* Patch from hb to fix the pagestats plugin, which was broken by a past

change to the backlinks() function.
master
joey 2007-05-12 17:56:56 +00:00
parent 1fa80e15a1
commit 08d0bd7338
3 changed files with 7 additions and 3 deletions

View 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;
}
}

4
debian/changelog vendored
View 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

View File

@ -24,4 +24,6 @@ Patch is :
--[[users/hb]]
--[[users/hb]]
thanks, [[done]] --[[Joey]]