From 2fff6e358faf72f04d110b83e0a80bddbcd111a8 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 7 Sep 2008 15:29:00 +0000 Subject: [PATCH] bug #2080963 [charset] Clarify doc and improved code --- ChangeLog | 2 ++ libraries/display_export.lib.php | 12 ++++++------ libraries/display_import.lib.php | 19 +++++++------------ 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index 598e85441..21ad60235 100644 --- a/ChangeLog +++ b/ChangeLog @@ -99,6 +99,8 @@ danbarry - patch #2075263 [auth] Single sign-on and cookie clearing, thanks to Charles Suh - cws125 - [doc] better documentation of $cfg['TempDir'] +- bug #2080963 [charset] Clarify doc and improved code, thanks to + Victor Volkov - hanut 2.11.9.0 (2008-08-28) - bug #2031221 [auth] Links to version number on login screen diff --git a/libraries/display_export.lib.php b/libraries/display_export.lib.php index a80f42fa6..ed063464c 100644 --- a/libraries/display_export.lib.php +++ b/libraries/display_export.lib.php @@ -207,17 +207,17 @@ echo PMA_pluginGetJavascript($export_list); echo ' ' . "\n"; - $temp_charset = reset($cfg['AvailableCharsets']); - echo ' '; + echo ''; } // end if ?> diff --git a/libraries/display_import.lib.php b/libraries/display_import.lib.php index 557a9a79d..0f3aa841e 100644 --- a/libraries/display_import.lib.php +++ b/libraries/display_import.lib.php @@ -83,22 +83,17 @@ if (!empty($cfg['UploadDir'])) { // charset of file echo '
' . "\n"; if ($cfg['AllowAnywhereRecoding'] && $allow_recoding) { - echo '' . "\n"; - $temp_charset = reset($cfg['AvailableCharsets']); - echo ' '; + foreach ($cfg['AvailableCharsets'] as $temp_charset) { + echo '' . "\n"; + echo '>' . htmlentities($temp_charset) . ''; } - echo '
' . "\n" . ' '; + echo '
'; } else { echo '' . "\n"; echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_CHARSET, 'charset_of_file', 'charset_of_file', 'utf8', FALSE);