]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/pagecount.pm
po plugin: respect documented convention to store pagestate
[git.ikiwiki.info.git] / IkiWiki / Plugin / pagecount.pm
index 2c20ca195dcd1f55ff4cdbe9ad70fed642c236af..e059fa61850c531083a7cfb743597ea2691f3be2 100644 (file)
@@ -6,9 +6,18 @@ use strict;
 use IkiWiki 2.00;
 
 sub import { #{{{
 use IkiWiki 2.00;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "pagecount", call => \&getsetup);
        hook(type => "preprocess", id => "pagecount", call => \&preprocess);
 } # }}}
 
        hook(type => "preprocess", id => "pagecount", call => \&preprocess);
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
+} #}}}
+
 sub preprocess (@) { #{{{
        my %params=@_;
        $params{pages}="*" unless defined $params{pages};
 sub preprocess (@) { #{{{
        my %params=@_;
        $params{pages}="*" unless defined $params{pages};