]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/pagecount.pm
* Run page through any relevant filters when generating a page preview.
[ikiwiki.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 (@) { #{{{