* Patch from hb to fix the pagestats plugin, which was broken by a past
change to the backlinks() function.master
parent
1fa80e15a1
commit
08d0bd7338
|
@ -36,7 +36,7 @@ sub preprocess (@) { #{{{
|
||||||
if (pagespec_match($page, $params{pages}, location => $params{page})) {
|
if (pagespec_match($page, $params{pages}, location => $params{page})) {
|
||||||
use IkiWiki::Render;
|
use IkiWiki::Render;
|
||||||
my @bl = IkiWiki::backlinks($page);
|
my @bl = IkiWiki::backlinks($page);
|
||||||
$counts{$page} = scalar(@bl);
|
$counts{$page} = scalar(@{$bl[0]})+scalar(@{$bl[1]});
|
||||||
$max = $counts{$page} if $counts{$page} > $max;
|
$max = $counts{$page} if $counts{$page} > $max;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,8 +30,10 @@ ikiwiki (2.1) UNRELEASED; urgency=low
|
||||||
inconsistencies.
|
inconsistencies.
|
||||||
* Allow WIKINAME to to used in footers, as an example of something to put
|
* Allow WIKINAME to to used in footers, as an example of something to put
|
||||||
there.
|
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
|
ikiwiki (2.00) unstable; urgency=low
|
||||||
|
|
||||||
|
|
|
@ -25,3 +25,5 @@ Patch is :
|
||||||
|
|
||||||
|
|
||||||
--[[users/hb]]
|
--[[users/hb]]
|
||||||
|
|
||||||
|
thanks, [[done]] --[[Joey]]
|
||||||
|
|
Loading…
Reference in New Issue