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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki') 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; } } -- cgit v1.2.3