From: joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Date: Wed, 31 Jan 2007 07:13:51 +0000 (+0000)
Subject: * Fix for missing backlinks() in pagestats plugin.
X-Git-Tag: 1.42~61
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=344ab0a16b749c44d6d19dbe1a179c8e30ceef31;p=ikiwiki.git

* Fix for missing backlinks() in pagestats plugin.
---

diff --git a/IkiWiki/Plugin/pagestats.pm b/IkiWiki/Plugin/pagestats.pm
index 0958f5af6..79b3292c6 100644
--- a/IkiWiki/Plugin/pagestats.pm
+++ b/IkiWiki/Plugin/pagestats.pm
@@ -34,6 +34,7 @@ sub preprocess (@) { #{{{
 	my $max = 0;
 	foreach my $page (keys %links) {
 		if (pagespec_match($page, $params{pages})) {
+			use IkiWiki::Render;
 			my @bl = IkiWiki::backlinks($page);
 			$counts{$page} = scalar(@bl);
 			$max = $counts{$page} if $counts{$page} > $max;
diff --git a/debian/changelog b/debian/changelog
index b6c696960..ffc86cb80 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,9 @@
 ikiwiki (1.42) UNRELEASED; urgency=low
 
   * 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