Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-03-19 18:06:13 +01:00
parent ea3e391b87
commit 3705e6c493

View File

@ -94,9 +94,8 @@ function smarty_modifier_locale_2_lang($locale) {
$lang_arr = explode('-', $locale); $lang_arr = explode('-', $locale);
if ($lang_arr && count($lang_arr) > 1) { if ($lang_arr && count($lang_arr) > 1) {
return $lang_arr[0]; return $lang_arr[0];
} else {
return $locale;
} }
return $locale;
} }
function path_for_datepicker_locale($lang) { function path_for_datepicker_locale($lang) {