projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Refactoring: SL::Template: Parameterübergabe als Hash, nicht positionsabhängig (Teil 2)
[kivitendo-erp.git]
/
SL
/
Template
/
Simple.pm
diff --git
a/SL/Template/Simple.pm
b/SL/Template/Simple.pm
index
a4b98ca
..
c525dab
100644
(file)
--- a/
SL/Template/Simple.pm
+++ b/
SL/Template/Simple.pm
@@
-32,6
+32,9
@@
sub new {
sub _init {
my ($self, %params) = @_;
+ $params{myconfig} ||= \%::myconfig;
+ $params{userspath} ||= $::lx_office_conf{paths}->{userspath};
+
$self->{$_} = $params{$_} for keys %params;
$self->{variable_content_types} ||= {};