X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAuth.pm;h=b9840fc08fe2405c0c405bc3ef3cb3e9fe7540e2;hb=8dd087bfc7c8947308b170c666682f6dec1ea30d;hp=ddd8233d3babeb26731accb35e025e330f969dc9;hpb=4bacfb02354f2591cb7d750962109976a570233b;p=kivitendo-erp.git diff --git a/SL/Auth.pm b/SL/Auth.pm index ddd8233d3..b9840fc08 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -492,6 +492,9 @@ sub read_user { # The XUL/XML backed menu has been removed. $user_data{menustyle} = 'v3' if lc($user_data{menustyle} || '') eq 'xml'; + # Set default language if selected language does not exist (anymore). + $user_data{countrycode} = $::lx_office_conf{system}->{language} unless $user_data{countrycode} && -d "locale/$user_data{countrycode}"; + $sth->finish(); $main::lxdebug->leave_sub();