]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/pagecount.pm
when autogenerating a dir naem, include "feed/" in it
[git.ikiwiki.info.git] / IkiWiki / Plugin / pagecount.pm
index 865ab4c39d7471154e1185647e962d004bd826ea..8a1376e09a022fb7be70ab3421a07693613dfa83 100644 (file)
@@ -4,9 +4,11 @@ package IkiWiki::Plugin::pagecount;
 
 use warnings;
 use strict;
+use IkiWiki;
 
 sub import { #{{{
-       IkiWiki::register_plugin("preprocess", "pagecount", \&preprocess);
+       IkiWiki::hook(type => "preprocess", id => "pagecount", 
+               call => \&preprocess);
 } # }}}
 
 sub preprocess (@) { #{{{