diff options
-rw-r--r-- | IkiWiki.pm | 5 |
1 files changed, 4 insertions, 1 deletions
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", @_; } #}}} |