From d8ad641ce1adc53dc52f2b1e189231d16701298a Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 8 Nov 2012 12:55:11 +0100 Subject: [PATCH] Fallback auf Sprache aus kivitendo.conf, falls vom Benutzer selektierte Sprache nicht existiert --- SL/Auth.pm | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.20.1