diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-05-12 17:56:56 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-05-12 17:56:56 +0000 |
commit | 08d0bd73384b79b5c21f75b06a982fc62998a0c2 (patch) | |
tree | b1ff2f3a2f0bf3ced0f1b45e3be67f81fe7b377b /IkiWiki | |
parent | 1fa80e15a164f3b2e2cdd88cdcee697d62b2891e (diff) | |
download | ikiwiki-08d0bd73384b79b5c21f75b06a982fc62998a0c2.tar ikiwiki-08d0bd73384b79b5c21f75b06a982fc62998a0c2.tar.gz |
* Patch from hb to fix the pagestats plugin, which was broken by a past
change to the backlinks() function.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/pagestats.pm | 2 |
1 files changed, 1 insertions, 1 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; } } |