]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/orphans.pm
web commit by joey
[git.ikiwiki.info.git] / IkiWiki / Plugin / orphans.pm
index 06b51bddcc6a13982b9a82f081361253059e858c..945892d177d7723bbd0ac579bcd0da36a40fd147 100644 (file)
@@ -4,9 +4,11 @@ package IkiWiki::Plugin::orphans;
 
 use warnings;
 use strict;
+use IkiWiki;
 
 sub import { #{{{
-       IkiWiki::register_plugin("preprocess", "orphans", \&preprocess);
+       IkiWiki::hook(type => "preprocess", id => "orphans",
+               call => \&preprocess);
 } # }}}
 
 sub preprocess (@) { #{{{