From e8e23027a19364bf7b3b3ec487c00ffbb1511ce8 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 18 Apr 2011 11:17:17 +0200 Subject: [PATCH] Always test your code, Moritz... --- SL/Template/Plugin/T8.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(@_); } -- 2.20.1