projects
/
koha-ffzg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0c4eb4
)
better fix for utf8 problems, also fixed search
author
Christopher Hall
<chris.hall@catalyst.net.nz>
Tue, 25 Jan 2011 02:26:36 +0000
(15:26 +1300)
committer
Christopher Hall
<chris.hall@catalyst.net.nz>
Tue, 25 Jan 2011 02:26:36 +0000
(15:26 +1300)
C4/Templates.pm
patch
|
blob
|
history
diff --git
a/C4/Templates.pm
b/C4/Templates.pm
index
8467b9c
..
93fb9ff
100644
(file)
--- a/
C4/Templates.pm
+++ b/
C4/Templates.pm
@@
-98,7
+98,6
@@
sub output {
$vars->{$k} = $self->{VARS}->{$k};
}
my $data;
- binmode( STDOUT, ":utf8" );
$template->process( $self->filename, $vars, \$data) || die "Template process failed: ", $template->error();;
return $data;
}
@@
-109,7
+108,7
@@
sub param{
while(@_){
my $key = shift;
my $val = shift;
- utf8::decode($val) if
$key eq "XSLTBloc"
;
+ utf8::decode($val) if
utf::is_utf8($val)
;
$self->{VARS}->{$key} = $val;
}
}