From 5a2a3ac3d1fcde254fd91a6916f0808972812e54 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 30 Dec 2010 16:26:11 +0100 Subject: [PATCH] render-Aufrufsyntax vereinfacht --- SL/Controller/Base.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/SL/Controller/Base.pm b/SL/Controller/Base.pm index 4f6bd196e..102631c8a 100644 --- a/SL/Controller/Base.pm +++ b/SL/Controller/Base.pm @@ -38,11 +38,7 @@ sub redirect_to { } sub render { - my $self = shift; - - my $template; - $template = shift if scalar(@_) % 2; - my %params = @_; + my ($self, $template, %params) = @_; if ($params{title}) { $::form->{title} = delete $params{title}; -- 2.20.1