From 1dddec0ba9f66f082f4b8349916cdb6bdb5636e3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 4 Jun 2008 01:24:23 -0400 Subject: Pass a destpage parameter to the sanitize hook. Because the search plugin needed it, also because it's one of the few plugins that didn't already have it. I also considered adding it to htmlize, but I really cannot imagine caring what the destpage is when htmlizing. (I'll probably be poven wrong later.) --- t/crazy-badass-perl-bug.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't/crazy-badass-perl-bug.t') diff --git a/t/crazy-badass-perl-bug.t b/t/crazy-badass-perl-bug.t index 27812559b..80724d174 100755 --- a/t/crazy-badass-perl-bug.t +++ b/t/crazy-badass-perl-bug.t @@ -13,6 +13,6 @@ BEGIN { use_ok("IkiWiki"); } %config=IkiWiki::defaultconfig(); $config{srcdir}=$config{destdir}="/dev/null"; IkiWiki::loadplugins(); IkiWiki::checkconfig(); -ok(IkiWiki::htmlize("foo", "mdwn", readfile("t/test1.mdwn"))); -ok(IkiWiki::htmlize("foo", "mdwn", readfile("t/test3.mdwn")), +ok(IkiWiki::htmlize("foo", "foo", "mdwn", readfile("t/test1.mdwn"))); +ok(IkiWiki::htmlize("foo", "foo", "mdwn", readfile("t/test3.mdwn")), "wtf?") for 1..100; -- cgit v1.2.3