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:
authorWilliam Desportes <williamdes@wdes.fr>2019-05-01 18:05:35 +0300
committerWilliam Desportes <williamdes@wdes.fr>2019-05-01 18:07:03 +0300
commit8b7db3bd5b6ab93e7fd31125d2d113021bd803fc (patch)
tree528d2874c9b5e279d44e1dc218484c9953bf59f3 /index.php
parent4909352c8840399fbfd4137796f5cc1890971be8 (diff)
parenteca65975b3a54f36c59c6152f3a7559c83f6efe0 (diff)
Fix #15059 - Server charset hardcoded in index.php
Fixes: #15059 Pull-request: #15103 Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.php b/index.php
index 2274e69122..ef2764769b 100644
--- a/index.php
+++ b/index.php
@@ -369,12 +369,14 @@ if ($server > 0 && $GLOBALS['cfg']['ShowServerInfo']) {
echo ' <li id="li_select_mysql_charset">';
echo ' ' , __('Server charset:') , ' '
. ' <span lang="en" dir="ltr">';
- $unicode = Charsets::$mysql_charset_map['utf-8'];
+
+ $charset = Charsets::getServerCharset($GLOBALS['dbi']);
$charsets = Charsets::getMySQLCharsetsDescriptions(
$GLOBALS['dbi'],
$GLOBALS['cfg']['Server']['DisableIS']
);
- echo ' ' , $charsets[$unicode], ' (' . $unicode, ')';
+
+ echo ' ' , $charsets[$charset], ' (' . $charset, ')';
echo ' </span>'
. ' </li>'
. ' </ul>'