]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/pagestats.pm
* Add some locking to prevent 2 aggregators from running at once.
[ikiwiki.git] / IkiWiki / Plugin / pagestats.pm
index 1d4d5ecdfa3569ca4268c1e11bd9b068e82d3aac..de559e2c5a63c762eb3277a85efffb950c912793 100644 (file)
@@ -33,8 +33,8 @@ sub preprocess (@) { #{{{
        
        my %counts;
        my $max = 0;
-       foreach my $page (%IkiWiki::links) {
-               if (IkiWiki::globlist_match($page, $params{pages})) {
+       foreach my $page (keys %IkiWiki::links) {
+               if (IkiWiki::pagespec_match($page, $params{pages})) {
                        my @bl = IkiWiki::backlinks($page);
                        $counts{$page} = scalar(@bl);
                        $max = $counts{$page} if $counts{$page} > $max;