]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/pagecount.pm
Accept [[!inline ... atomid="..."]] and use it to populate the feed's Atom <id>.
[git.ikiwiki.info.git] / IkiWiki / Plugin / pagecount.pm
index 313ffdff0d6e9c225957d692fbfdea6a9f3109a3..2c20ca195dcd1f55ff4cdbe9ad70fed642c236af 100644 (file)
@@ -3,7 +3,7 @@ package IkiWiki::Plugin::pagecount;
 
 use warnings;
 use strict;
-use IkiWiki;
+use IkiWiki 2.00;
 
 sub import { #{{{
        hook(type => "preprocess", id => "pagecount", call => \&preprocess);
@@ -21,7 +21,7 @@ sub preprocess (@) { #{{{
        return $#pages+1 if $params{pages} eq "*"; # optimisation
        my $count=0;
        foreach my $page (@pages) {
-               $count++ if pagespec_match($page, $params{pages}, $params{page});
+               $count++ if pagespec_match($page, $params{pages}, location => $params{page});
        }
        return $count;
 } # }}}