From: Moritz Bunkus Date: Wed, 19 Jan 2011 15:19:38 +0000 (+0100) Subject: Gesamte %::lx_office_conf als Objekt an Controller-basierte Templates übergeben X-Git-Tag: release-2.6.3~61^2~7^2~1^2~9^2~2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b069a8db461a423efbe07190c326ce89ddbf3e20;p=kivitendo-erp.git Gesamte %::lx_office_conf als Objekt an Controller-basierte Templates übergeben --- diff --git a/SL/Controller/Base.pm b/SL/Controller/Base.pm index 8135b5558..fff11ca3a 100644 --- a/SL/Controller/Base.pm +++ b/SL/Controller/Base.pm @@ -67,14 +67,7 @@ sub render { AUTH => $::auth, FORM => $::form, LOCALE => $::locale, - LXCONFIG => { dbcharset => $::lx_office_conf{system}->{dbcharset}, - webdav => $::lx_office_conf{system}->{webdav}, - lizenzen => $::lx_office_conf{system}->{lizenzen}, - latex_templates => $::lx_office_conf{print_templates}->{latex}, - opendocument_templates => $::lx_office_conf{print_templates}->{opendocument}, - vertreter => $::lx_office_conf{system}->{vertreter}, - show_best_before => $::lx_office_conf{system}->{show_best_before}, - }, + LXCONFIG => \%::lx_office_conf, LXDEBUG => $::lxdebug, MYCONFIG => \%::myconfig, SELF => $self, @@ -336,9 +329,10 @@ The template itself has access to the following variables: =item * C -- C<$::locale> -=item * C -- all parameters from C with -the same name they appear in the file (e.g. C, C -etc) +=item * C -- all parameters from C +with the same name they appear in the file (first level is the +section, second the actual variable, e.g. C, +C etc) =item * C -- C<$::lxdebug>