From e68305febd52c7d357a02d21b273423887d2783f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 30 Mar 2010 12:25:24 +0200 Subject: [PATCH] PMA_langList returns only existing languages, no need to check them again. --- setup/frames/index.inc.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/setup/frames/index.inc.php b/setup/frames/index.inc.php index 78c94cb5a..628238242 100644 --- a/setup/frames/index.inc.php +++ b/setup/frames/index.inc.php @@ -74,9 +74,6 @@ if (!$is_https) { // create language list $lang_list = array(); foreach ($all_languages as $each_lang_key => $each_lang) { - if (!file_exists($GLOBALS['lang_path'] . $each_lang[1] . '.inc.php')) { - continue; - } $lang_name = ucfirst(substr(strrchr($each_lang[0], '|'), 1)); // Include native name if non empty @@ -175,9 +172,6 @@ $opts = array( 'values' => array(), 'values_escaped' => true); foreach ($all_languages as $each_lang_key => $each_lang) { - if (!file_exists($GLOBALS['lang_path'] . $each_lang[1] . '.inc.php')) { - continue; - } $lang_name = ucfirst(substr(strrchr($each_lang[0], '|'), 1)); // Include native name if non empty if (!empty($each_lang[3])) {