modify to actually work
[ikiwiki.git] / IkiWiki.pm
index 7002b55bed24169e3c356ff22af9bc5d0f0e9fcc..e86581415c9ff5ef12fe4fc6ca89174eb3646aa8 100644 (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", @_;
 } #}}}