Form: parse_html_template lobals analog zu Presenter::render
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 11 Dec 2015 14:16:52 +0000 (15:16 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 11 Dec 2015 15:16:21 +0000 (16:16 +0100)
jetzt auch in Form verfügbar:

- AUTH
- LOCALE
- LXCONFIG
- LXDEBUG
- MYCONFIG

SL/Form.pm

index ee040b5..e5c91b1 100644 (file)
@@ -631,7 +631,12 @@ sub _prepare_html_template {
     map { $additional_params->{"myconfig_${_}"} = $main::myconfig{$_}; } keys %::myconfig;
   }
 
+  $additional_params->{AUTH}          = $::auth;
   $additional_params->{INSTANCE_CONF} = $::instance_conf;
+  $additional_params->{LOCALE}        = $::locale;
+  $additional_params->{LXCONFIG}      = \%::lx_office_conf;
+  $additional_params->{LXDEBUG}       = $::lxdebug;
+  $additional_params->{MYCONFIG}      = \%::myconfig;
 
   if (my $debug_options = $::lx_office_conf{debug}{options}) {
     map { $additional_params->{'DEBUG_' . uc($_)} = $debug_options->{$_} } keys %$debug_options;