modify to actually work

master
joey 2006-07-02 19:47:22 +00:00
parent 24a4bf8977
commit 628e2ad5e0
1 changed files with 4 additions and 1 deletions

View File

@ -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", @_;
} #}}}