summaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm5
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", @_;
} #}}}