mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
Provide a default country even if not in setup
This commit is contained in:
parent
b408d9fa1d
commit
74f232a1b1
@ -94,10 +94,11 @@ class preferences_hooks
|
|||||||
{
|
{
|
||||||
$lang = setup::get_lang();
|
$lang = setup::get_lang();
|
||||||
if (empty($lang)) $lang = 'en';
|
if (empty($lang)) $lang = 'en';
|
||||||
list(,$country) = explode('-',$lang);
|
|
||||||
if (empty($country)) $country = Locale::getRegion(Locale::getDefault());
|
|
||||||
if (empty($country)) $country = 'de';
|
|
||||||
}
|
}
|
||||||
|
list(,$country) = explode('-',$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
|
// check for old rte_font_size pref including px and split it in size and unit
|
||||||
if (!isset($GLOBALS['egw_setup']) &&
|
if (!isset($GLOBALS['egw_setup']) &&
|
||||||
substr($GLOBALS['egw_info']['user']['preferences']['common']['rte_font_size'], -2) == 'px')
|
substr($GLOBALS['egw_info']['user']['preferences']['common']['rte_font_size'], -2) == 'px')
|
||||||
|
Loading…
Reference in New Issue
Block a user