diff --git a/preferences/inc/class.preferences_hooks.inc.php b/preferences/inc/class.preferences_hooks.inc.php index 58e0afb2fb..6ccc3e2b34 100644 --- a/preferences/inc/class.preferences_hooks.inc.php +++ b/preferences/inc/class.preferences_hooks.inc.php @@ -93,8 +93,8 @@ class preferences_hooks if ($hook_data['setup']) // called via setup { $lang = setup::get_lang(); - if (empty($lang)) $lang = 'en'; } + if (empty($lang)) $lang = 'en'; list(,$country) = explode('-',$lang); if (empty($country) && class_exists('Locale')) $country = Locale::getRegion(Locale::getDefault()); if (empty($country)) $country = 'de';