mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Get fallback country from locale, rather than language
Fixes problems with EN is not a country.
This commit is contained in:
parent
da2dd3bd16
commit
b798327eec
@ -91,7 +91,8 @@ class preferences_hooks
|
||||
$lang = setup::get_lang();
|
||||
if (empty($lang)) $lang = 'en';
|
||||
list(,$country) = explode('-',$lang);
|
||||
if (empty($country)) $country = $lang;
|
||||
if (empty($country)) $country = Locale::getRegion(Locale::getDefault());
|
||||
if (empty($country)) $country = 'de';
|
||||
}
|
||||
// check for old rte_font_size pref including px and split it in size and unit
|
||||
if (!isset($GLOBALS['egw_setup']) &&
|
||||
|
Loading…
Reference in New Issue
Block a user