summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/pagestats.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/pagestats.pm')
-rw-r--r--IkiWiki/Plugin/pagestats.pm11
1 files changed, 5 insertions, 6 deletions
diff --git a/IkiWiki/Plugin/pagestats.pm b/IkiWiki/Plugin/pagestats.pm
index dbe69539d..8ab5d3666 100644
--- a/IkiWiki/Plugin/pagestats.pm
+++ b/IkiWiki/Plugin/pagestats.pm
@@ -41,12 +41,11 @@ sub preprocess (@) {
my %counts;
my $max = 0;
- foreach my $page (keys %links) {
- if (pagespec_match($page, $params{pages}, location => $params{page})) {
- use IkiWiki::Render;
- $counts{$page} = scalar(IkiWiki::backlinks($page));
- $max = $counts{$page} if $counts{$page} > $max;
- }
+ foreach my $page (pagespec_match_list([keys %links],
+ $params{pages}, location => $params{page})) {
+ use IkiWiki::Render;
+ $counts{$page} = scalar(IkiWiki::backlinks($page));
+ $max = $counts{$page} if $counts{$page} > $max;
}
if ($style eq 'table') {
.de/sys0
-rw-r--r--tags/fe/8b/20170906000525.6E9C27884@lxp5.free-owl.de/unread0
-rw-r--r--tags/fe/8b/20171225143210.r65nqb5zrfc43csh@xorcom.com/debian0
-rw-r--r--tags/fe/8b/20171225143210.r65nqb5zrfc43csh@xorcom.com/killed0
-rw-r--r--tags/fe/8b/20171225143210.r65nqb5zrfc43csh@xorcom.com/unread0
-rw-r--r--tags/fe/8b/20180719200215.04B371CCD59@lxp5.free-owl.de/sys0
-rw-r--r--tags/fe/8b/20180719200215.04B371CCD59@lxp5.free-owl.de/unread0
-rw-r--r--tags/fe/8b/E1XrVZV-0006Oo-8j@swivel.zugschlus.de/debian0
-rw-r--r--tags/fe/8b/E1chvaI-00012q-EN@moszumanska.debian.org/inbox0
-rw-r--r--tags/fe/8b/E1chvaI-00012q-EN@moszumanska.debian.org/old0
-rw-r--r--tags/fe/8b/Pine.LNX.4.44.0210141342120.2814-100000@auryn.jones.dk/sent0
-rw-r--r--tags/fe/8b/d765298b-6074-f2bd-4520-18ecaa71cba5@hamaralinux.org/inbox0
-rw-r--r--tags/fe/8b/d765298b-6074-f2bd-4520-18ecaa71cba5@hamaralinux.org/old0
-rw-r--r--tags/fe/8b/fa96b716-9e46-b5c8-9674-9cf398cee493@sarathms.me/debian0
21 files changed, 0 insertions, 0 deletions