From: Moritz Bunkus Date: Tue, 15 Jul 2014 11:11:40 +0000 (+0200) Subject: SL::Locale::String: @_ in neue Ref kopieren anstatt \@_ X-Git-Tag: release-3.2.0beta~395 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b3a47a992c7c7918e0cf67d9d6c10d002ef2108f;p=kivitendo-erp.git SL::Locale::String: @_ in neue Ref kopieren anstatt \@_ ansonsten verschwinden aus irgend einem Grund alle Elemente außer dem ersten. --- diff --git a/SL/Locale/String.pm b/SL/Locale/String.pm index 54b4fa0cc..e05ae6abe 100644 --- a/SL/Locale/String.pm +++ b/SL/Locale/String.pm @@ -22,7 +22,7 @@ sub t8 { shift if $_[0] eq __PACKAGE__; my $string = shift; - return SL::Locale::String->new(untranslated => $string, args => \@_); + return SL::Locale::String->new(untranslated => $string, args => [ @_ ]); } sub TO_JSON {