mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +01:00
check if class Locale exists before using it
This commit is contained in:
parent
5261404c53
commit
cb6be27b12
@ -96,7 +96,7 @@ class preferences_hooks
|
|||||||
if (empty($lang)) $lang = 'en';
|
if (empty($lang)) $lang = 'en';
|
||||||
}
|
}
|
||||||
list(,$country) = explode('-',$lang);
|
list(,$country) = explode('-',$lang);
|
||||||
if (empty($country)) $country = Locale::getRegion(Locale::getDefault());
|
if (empty($country) && class_exists('Locale')) $country = Locale::getRegion(Locale::getDefault());
|
||||||
if (empty($country)) $country = 'de';
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user