From 1b3ad7949687a373d832e0447f772e86363525f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 19 Sep 2011 17:34:10 +0200 Subject: [PATCH] %::debug_options => $::lx_office_conf->{debug}->{options} MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Globale Hashes sind mit der jetzigen Konfiguration eh nicht schreibbar (zum Glück) und der Standard benutzt das eh nicht. Wenn also einer das braucht, bitte das benutzen. --- SL/Form.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Form.pm b/SL/Form.pm index 024cd96d8..f313999c3 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -846,8 +846,8 @@ sub _prepare_html_template { $additional_params->{"conf_payments_changeable"} = $::lx_office_conf{features}->{payments_changeable}; $additional_params->{"INSTANCE_CONF"} = $::instance_conf; - if (%main::debug_options) { - map { $additional_params->{'DEBUG_' . uc($_)} = $main::debug_options{$_} } keys %main::debug_options; + if (my $debug_options = $::lx_office_conf{debug}{options}) { + map { $additional_params->{'DEBUG_' . uc($_)} = $debug_options->{$_} } keys %$debug_options; } if ($main::auth && $main::auth->{RIGHTS} && $main::auth->{RIGHTS}->{$self->{login}}) { -- 2.20.1