* Fix for missing backlinks() in pagestats plugin.

master
joey 2007-01-31 07:13:51 +00:00
parent 2dc010d66a
commit 344ab0a16b
2 changed files with 3 additions and 1 deletions

View File

@ -34,6 +34,7 @@ sub preprocess (@) { #{{{
my $max = 0; my $max = 0;
foreach my $page (keys %links) { foreach my $page (keys %links) {
if (pagespec_match($page, $params{pages})) { if (pagespec_match($page, $params{pages})) {
use IkiWiki::Render;
my @bl = IkiWiki::backlinks($page); my @bl = IkiWiki::backlinks($page);
$counts{$page} = scalar(@bl); $counts{$page} = scalar(@bl);
$max = $counts{$page} if $counts{$page} > $max; $max = $counts{$page} if $counts{$page} > $max;

3
debian/changelog vendored
View File

@ -1,8 +1,9 @@
ikiwiki (1.42) UNRELEASED; urgency=low ikiwiki (1.42) UNRELEASED; urgency=low
* Fix one more missing translation of Discussion. * Fix one more missing translation of Discussion.
* Fix for missing backlinks() in pagestats plugin.
-- Joey Hess <joeyh@debian.org> Wed, 31 Jan 2007 02:08:57 -0500 -- Joey Hess <joeyh@debian.org> Wed, 31 Jan 2007 02:12:01 -0500
ikiwiki (1.41) unstable; urgency=low ikiwiki (1.41) unstable; urgency=low