From: Moritz Bunkus Date: Thu, 30 Dec 2010 15:26:11 +0000 (+0100) Subject: render-Aufrufsyntax vereinfacht X-Git-Tag: release-2.6.2beta1~17^2~3^2~8 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5a2a3ac3d1fcde254fd91a6916f0808972812e54;p=kivitendo-erp.git render-Aufrufsyntax vereinfacht --- 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};