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:
authorDeven Bansod <devenbansod.bits@gmail.com>2016-10-31 06:32:59 +0300
committerDeven Bansod <devenbansod.bits@gmail.com>2016-10-31 06:32:59 +0300
commite2dac31bdb02a2d80c7d5579b8594f21eceda380 (patch)
tree4aa3ad0b84e8024553cb686dfb86169d31118b94 /index.php
parent03fd02ad50d7d2ccda0c1128f02dd4c4a3b0879a (diff)
Refactor the language selector display into a template
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.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 9bf8d6c666..69f697438d 100644
--- a/index.php
+++ b/index.php
@@ -10,6 +10,7 @@ use PMA\libraries\URL;
use PMA\libraries\Sanitize;
use PMA\libraries\Charsets;
use PMA\libraries\ThemeManager;
+use PMA\libraries\LanguageManager;
/**
* Gets some core libraries and displays a top message if required
@@ -236,9 +237,9 @@ echo ' <ul>';
// Displays language selection combo
if (empty($cfg['Lang'])) {
echo '<li id="li_select_lang" class="no_bullets">';
- include_once 'libraries/display_select_lang.lib.php';
+
echo PMA\libraries\Util::getImage('s_lang.png') , " "
- , PMA_getLanguageSelectorHtml();
+ , LanguageManager::getInstance()->getSelectorDisplay();
echo '</li>';
}