From: joey Date: Sun, 2 Jul 2006 19:47:22 +0000 (+0000) Subject: modify to actually work X-Git-Tag: 1.8~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=628e2ad5e0d0682b401d8ad484e9baeeda4accf8;p=ikiwiki.git modify to actually work --- diff --git a/IkiWiki.pm b/IkiWiki.pm index 7002b55be..e86581415 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -394,7 +394,10 @@ sub template_params (@) { #{{{ require Encode; require HTML::Template; - return filter => \&Encode::decode_utf8, + return filter => sub { + my $text_ref = shift; + $$text_ref=&Encode::decode_utf8($$text_ref); + }, filename => "$config{templatedir}/$filename", @_; } #}}}