Backward compatibility for language cookies.

This commit is contained in:
Michal Čihař
2010-08-19 10:52:58 +02:00
parent 1f248cc254
commit 26c79f55c5

View File

@@ -121,6 +121,9 @@ function PMA_langCheck()
*/ */
function PMA_langSet(&$lang) 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])) { if (!is_string($lang) || empty($lang) || empty($GLOBALS['available_languages'][$lang])) {
return false; return false;
} }