projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0f198f
)
render-Aufrufsyntax vereinfacht
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 30 Dec 2010 15:26:11 +0000
(16:26 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 30 Dec 2010 15:26:11 +0000
(16:26 +0100)
SL/Controller/Base.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Base.pm
b/SL/Controller/Base.pm
index
4f6bd19
..
102631c
100644
(file)
--- 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};