]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/pagestats.pm
* ikiwiki can now download and aggregate feeds with its new aggregate
[ikiwiki.git] / IkiWiki / Plugin / pagestats.pm
index 1d4d5ecdfa3569ca4268c1e11bd9b068e82d3aac..a1b4c1d45b59ed7df414765012ddaead887a1030 100644 (file)
@@ -33,7 +33,7 @@ sub preprocess (@) { #{{{
        
        my %counts;
        my $max = 0;
-       foreach my $page (%IkiWiki::links) {
+       foreach my $page (keys %IkiWiki::links) {
                if (IkiWiki::globlist_match($page, $params{pages})) {
                        my @bl = IkiWiki::backlinks($page);
                        $counts{$page} = scalar(@bl);