X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/77ee93fc2852fa057f03229cecde6b389f65d6dd..d80ffb811b20a9bba4da4fd18815fa1e3275d17d:/SL/Dispatcher.pm diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 0071e8137..4aadef74d 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -23,6 +23,7 @@ use SL::Locale; use SL::Common; use SL::Form; use SL::Helper::DateTime; +use SL::InstanceConfiguration; use SL::Template::Plugin::HTMLFixes; # Trailing new line is added so that Perl will not add the line @@ -168,10 +169,11 @@ sub handle_request { $self->unrequire_bin_mozilla; - $::cgi = CGI->new(''); - $::locale = Locale->new($::lx_office_conf{system}->{language}); - $::form = Form->new; - %::called_subs = (); + $::cgi = CGI->new(''); + $::locale = Locale->new($::lx_office_conf{system}->{language}); + $::form = Form->new; + %::called_subs = (); + $::instance_conf = SL::InstanceConfiguration->new; my $session_result = $::auth->restore_session; $::auth->create_or_refresh_session; @@ -219,6 +221,8 @@ sub handle_request { delete $::form->{password}; if ($action) { + $::instance_conf->init; + map { $::form->{$_} = $::myconfig{$_} } qw(stylesheet charset) unless $action eq 'save' && $::form->{type} eq 'preferences';