projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GetModels: get_callback_params
[kivitendo-erp.git]
/
SL
/
Dispatcher.pm
diff --git
a/SL/Dispatcher.pm
b/SL/Dispatcher.pm
index
56791ed
..
43d6fa7
100644
(file)
--- a/
SL/Dispatcher.pm
+++ b/
SL/Dispatcher.pm
@@
-38,6
+38,7
@@
use SL::Form;
use SL::Helper::DateTime;
use SL::InstanceConfiguration;
use SL::Template::Plugin::HTMLFixes;
use SL::Helper::DateTime;
use SL::InstanceConfiguration;
use SL::Template::Plugin::HTMLFixes;
+use SL::User;
# Trailing new line is added so that Perl will not add the line
# number 'die' was called in.
# Trailing new line is added so that Perl will not add the line
# number 'die' was called in.
@@
-105,8
+106,6
@@
sub pre_request_initialization {
die "cannot find locale for user " . $params{login} unless $::locale = Locale->new($::myconfig{countrycode});
$::form->{login} = $params{login}; # normaly implicit at login
die "cannot find locale for user " . $params{login} unless $::locale = Locale->new($::myconfig{countrycode});
$::form->{login} = $params{login}; # normaly implicit at login
-
- $::instance_conf->init;
}
}
}
}
@@
-159,8
+158,8
@@
sub pre_startup_setup {
$::lxdebug = LXDebug->new;
$::auth = SL::Auth->new;
$::form = undef;
$::lxdebug = LXDebug->new;
$::auth = SL::Auth->new;
$::form = undef;
- %::myconfig = ();
$::request = undef;
$::request = undef;
+ %::myconfig = User->get_default_myconfig;
}
$SIG{__WARN__} = sub {
}
$SIG{__WARN__} = sub {