Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2017-02-13 13:22:43 +0300
committerMichal Čihař <michal@cihar.com>2017-02-13 13:22:43 +0300
commit924aabf652f35a35ccfe66a6fa706bb434282081 (patch)
treead5edacf9faa36a3e344388ef93539077aba00f8 /index.php
parentcdd5f7f6d38c2e723087ac97523cfa7d99b6f7a7 (diff)
Do not show language selector without choices
Move the check from template to the code, so that the selection is completely hidden when there is nothing to select. Fixes #12988 Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.php b/index.php
index 0ced453dd7..f33a0b44c9 100644
--- a/index.php
+++ b/index.php
@@ -236,11 +236,12 @@ echo '<h2>' , __('Appearance settings') , '</h2>';
echo ' <ul>';
// Displays language selection combo
-if (empty($cfg['Lang'])) {
+$language_manager = LanguageManager::getInstance();
+if (empty($cfg['Lang']) && $language_manager->hasChoice()) {
echo '<li id="li_select_lang" class="no_bullets">';
echo PMA\libraries\Util::getImage('s_lang.png') , " "
- , LanguageManager::getInstance()->getSelectorDisplay();
+ , $language_manager->getSelectorDisplay();
echo '</li>';
}