From 26c79f55c5de7b95fb9346bb056944b4f1aa65aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 19 Aug 2010 10:52:58 +0200 Subject: [PATCH] Backward compatibility for language cookies. --- libraries/select_lang.lib.php | 3 +++ 1 file changed, 3 insertions(+) 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; }