]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/toc.pm
* Work on firming up the plugin interface:
[ikiwiki.git] / IkiWiki / Plugin / toc.pm
index 063e66f3babafaa674bcd9a3d5ef472dfd2e4f20..279eef00837a66c901056096c89af1c1180e6a42 100644 (file)
@@ -8,10 +8,8 @@ use IkiWiki;
 use HTML::Parser;
 
 sub import { #{{{
-       IkiWiki::hook(type => "preprocess", id => "toc",
-               call => \&preprocess);
-       IkiWiki::hook(type => "format", id => "toc",
-               call => \&format);
+       hook(type => "preprocess", id => "toc", call => \&preprocess);
+       hook(type => "format", id => "toc", call => \&format);
 } # }}}
 
 my %tocpages;