]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/inline.pm
* Allow discussion links on pages to be turned off with --no-discussion.
[ikiwiki.git] / IkiWiki / Plugin / inline.pm
index 53ea5bf18aa3f28cc162721214104a31b2133f0e..61b4a8523f2dfaf9156238b0ab54adedc9f77b42 100644 (file)
@@ -4,9 +4,11 @@ package IkiWiki::Plugin::inline;
 
 use warnings;
 use strict;
+use IkiWiki;
 
 sub import { #{{{
-       IkiWiki::register_plugin("preprocess", "inline", \&IkiWiki::preprocess_inline);
+       IkiWiki::hook(type => "preprocess", id => "inline", 
+               call => \&IkiWiki::preprocess_inline);
 } # }}}
 
 # Back to ikiwiki namespace for the rest, this code is very much