From: Moritz Bunkus Date: Mon, 18 Apr 2011 09:17:17 +0000 (+0200) Subject: Always test your code, Moritz... X-Git-Tag: release-2.6.3~35^2~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e8e23027a19364bf7b3b3ec487c00ffbb1511ce8;p=kivitendo-erp.git Always test your code, Moritz... --- diff --git a/SL/Template/Plugin/T8.pm b/SL/Template/Plugin/T8.pm index 6ab91db7b..aff440181 100644 --- a/SL/Template/Plugin/T8.pm +++ b/SL/Template/Plugin/T8.pm @@ -6,7 +6,7 @@ use parent qw( Template::Plugin::Filter ); my $cached_instance; sub new { - my ($class) = @_; + my $class = shift; return $cached_instance ||= $class->SUPER::new(@_); }