]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/orphans.pm
change plugin interface to use named parameters for flexability
[git.ikiwiki.info.git] / IkiWiki / Plugin / orphans.pm
index bd3c6b8b9f8e4157856417847458832fbe731d26..945892d177d7723bbd0ac579bcd0da36a40fd147 100644 (file)
@@ -7,7 +7,8 @@ use strict;
 use IkiWiki;
 
 sub import { #{{{
-       IkiWiki::register_plugin("preprocess", "orphans", \&preprocess);
+       IkiWiki::hook(type => "preprocess", id => "orphans",
+               call => \&preprocess);
 } # }}}
 
 sub preprocess (@) { #{{{