summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-05-12 17:56:56 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-05-12 17:56:56 +0000
commit08d0bd73384b79b5c21f75b06a982fc62998a0c2 (patch)
treeb1ff2f3a2f0bf3ced0f1b45e3be67f81fe7b377b
parent1fa80e15a164f3b2e2cdd88cdcee697d62b2891e (diff)
* Patch from hb to fix the pagestats plugin, which was broken by a past
change to the backlinks() function.
-rw-r--r--IkiWiki/Plugin/pagestats.pm2
-rw-r--r--debian/changelog4
-rw-r--r--doc/bugs/pagestats_plugin_broken.mdwn4
3 files changed, 7 insertions, 3 deletions
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;
}
}
diff --git a/debian/changelog b/debian/changelog
index 742ec135a..52c16393f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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
diff --git a/doc/bugs/pagestats_plugin_broken.mdwn b/doc/bugs/pagestats_plugin_broken.mdwn
index cad68fa06..0ae74b4ee 100644
--- a/doc/bugs/pagestats_plugin_broken.mdwn
+++ b/doc/bugs/pagestats_plugin_broken.mdwn
@@ -24,4 +24,6 @@ Patch is :
---[[users/hb]] \ No newline at end of file
+--[[users/hb]]
+
+thanks, [[done]] --[[Joey]]