diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-11-09 16:28:08 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-11-09 16:31:42 +0300 |
commit | cc2c4fc36d39d2abf99836d90c521914086fe2b3 (patch) | |
tree | 927efc69398499f231e038f1248e2fa8a72afa5b /index.php | |
parent | 8aa562ed993a224780964c6c85bf45ce013229ef (diff) |
Replace globals with DI in Charsets class
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -225,6 +225,8 @@ if ($server > 0 || count($cfg['Servers']) > 1 . ' </label>' . "\n" . Charsets::getCollationDropdownBox( + $GLOBALS['dbi'], + $GLOBALS['cfg']['Server']['DisableIS'], 'collation_connection', 'select_collation_connection', $collation_connection, @@ -327,7 +329,10 @@ if ($server > 0 && $GLOBALS['cfg']['ShowServerInfo']) { echo ' ' , __('Server charset:') , ' ' . ' <span lang="en" dir="ltr">'; $unicode = Charsets::$mysql_charset_map['utf-8']; - $charsets = Charsets::getMySQLCharsetsDescriptions(); + $charsets = Charsets::getMySQLCharsetsDescriptions( + $GLOBALS['dbi'], + $GLOBALS['cfg']['Server']['DisableIS'] + ); echo ' ' , $charsets[$unicode], ' (' . $unicode, ')'; echo ' </span>' . ' </li>' |