* Work on firming up the plugin interface:
[ikiwiki.git] / IkiWiki / Plugin / rst.pm
index 789a70ac752b25c2c7aec04d0c79dd61a66f1775..1fd13d1f5ceca92262cbbfb70d86e979c9ff7d88 100644 (file)
@@ -36,7 +36,7 @@ print html[html.find('<body>')+6:html.find('</body>')].strip();
 ";
 
 sub import { #{{{
-       IkiWiki::hook(type => "htmlize", id => "rst", call => \&htmlize);
+       hook(type => "htmlize", id => "rst", call => \&htmlize);
 } # }}}
 
 sub htmlize (@) { #{{{
@@ -54,7 +54,7 @@ sub htmlize (@) { #{{{
                last unless $@;
                $tries--;
                if ($tries < 1) {
-                       IkiWiki::debug("failed to run python to convert rst: $@");
+                       debug("failed to run python to convert rst: $@");
                        return $content;
                }
        }