diff options
author | Michal Čihař <michal@cihar.com> | 2017-02-13 13:22:43 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-02-13 13:22:43 +0300 |
commit | 924aabf652f35a35ccfe66a6fa706bb434282081 (patch) | |
tree | ad5edacf9faa36a3e344388ef93539077aba00f8 /index.php | |
parent | cdd5f7f6d38c2e723087ac97523cfa7d99b6f7a7 (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.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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>'; } |