bug #1934401 [core] Cannot force a language

This commit is contained in:
Marc Delisle
2008-04-16 18:54:42 +00:00
parent 1638a932d2
commit 44ca7ef8f3
2 changed files with 3 additions and 1 deletions

View File

@@ -848,7 +848,8 @@ function PMA_DBI_postConnect($link, $is_controluser = false)
}
// and we remove the non-UTF-8 choices to avoid confusion
if (!defined('PMA_REMOVED_NON_UTF_8')) {
// (unless there is a forced language)
if (!defined('PMA_REMOVED_NON_UTF_8') && ! isset($GLOBALS['cfg']['Lang'])) {
foreach ($GLOBALS['available_languages'] as $each_lang => $dummy) {
if (substr($each_lang, -5) != 'utf-8') {
unset($GLOBALS['available_languages'][$each_lang]);