From: Moritz Bunkus Date: Thu, 15 Nov 2007 15:40:03 +0000 (+0000) Subject: 1. Schreibfehler in Variablenname. 2. Hashreferenzen in Hashes speichern, nicht Hashe... X-Git-Tag: release-2.6.0beta1~406 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5819688952c34a09d1b2ed0a1525e0a0f0ca7163;p=kivitendo-erp.git 1. Schreibfehler in Variablenname. 2. Hashreferenzen in Hashes speichern, nicht Hashes selber. --- diff --git a/SL/ReportGenerator.pm b/SL/ReportGenerator.pm index 2e8bcf92d..29e2d9480 100644 --- a/SL/ReportGenerator.pm +++ b/SL/ReportGenerator.pm @@ -61,17 +61,18 @@ sub new { sub _init_escaped_strings_map { my $self = shift; - $self->{escaped_strings_map} = - ('ä' => 'ä', - 'ö' => 'ö', - 'ü' => 'ü', - 'Ä' => 'Ä', - 'Ö' => 'Ö', - 'Ü' => 'Ü', - 'ß' => 'ß', - '>' => '>', + $self->{escaped_strings_map} = { + 'ä' => 'ä', + 'ö' => 'ö', + 'ü' => 'ü', + 'Ä' => 'Ä', + 'Ö' => 'Ö', + 'Ü' => 'Ü', + 'ß' => 'ß', + '>' => '>', '<' => '<', - '"' => '"'); + '"' => '"', + }; my $iconv = $main::locale->{iconv_iso8859}; @@ -521,7 +522,7 @@ sub unescape_string { my $self = shift; my $text = shift; - foreach my $key (keys %{ $self->{escaped_strigns_map} }) { + foreach my $key (keys %{ $self->{escaped_strings_map} }) { $text =~ s/\Q$key\E/$self->{escaped_strings_map}->{$key}/g; }