diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-02 19:47:22 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-02 19:47:22 +0000 |
commit | 628e2ad5e0d0682b401d8ad484e9baeeda4accf8 (patch) | |
tree | ceac7aa0d6b396cc3f16056da6db8ad2bdd37b27 | |
parent | 24a4bf8977716aeb5e52f5ce0dd02d351f4eb854 (diff) |
modify to actually work
-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", @_; } #}}} |