]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/htmltidy.pm
post for Don
[git.ikiwiki.info.git] / IkiWiki / Plugin / htmltidy.pm
index c626250cba0c8efcecc21b7f82b29abcb2aaed96..906c677dc1302391eebd9266d74aea20fe5b1d9c 100644 (file)
@@ -13,7 +13,7 @@ use IkiWiki;
 use IPC::Open2;
 
 sub import { #{{{
-       IkiWiki::hook(type => "sanitize", id => "tidy", call => \&sanitize);
+       hook(type => "sanitize", id => "tidy", call => \&sanitize);
 } # }}}
 
 sub sanitize (@) { #{{{
@@ -28,7 +28,7 @@ sub sanitize (@) { #{{{
                last unless $@;
                $tries--;
                if ($tries < 1) {
-                       IkiWiki::debug("failed to run tidy: $@");
+                       debug("failed to run tidy: $@");
                        return $params{content};
                }
        }