diff --git a/libraries/select_lang.lib.php b/libraries/select_lang.lib.php index 06b35f49d..f1a3725aa 100644 --- a/libraries/select_lang.lib.php +++ b/libraries/select_lang.lib.php @@ -121,6 +121,9 @@ function PMA_langCheck() */ function PMA_langSet(&$lang) { + /* Partial backward compatibility with 3.3 and older branches */ + $lang = str_replace('-utf-8', '', $lang); + if (!is_string($lang) || empty($lang) || empty($GLOBALS['available_languages'][$lang])) { return false; }