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:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-01-11 20:08:46 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-01-11 20:08:46 +0300
commit16459bf343b5e4b985b61c69063bedfe41605fa8 (patch)
tree2d4dacb5bea2538085bce72496b425eb083b6ea4 /libraries/classes/Display/Export.php
parentbcb67cb15fd99ebab9ea7ebf88b0f04934d60478 (diff)
Use template for getHtmlForExportOptionsOutputCharset
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'libraries/classes/Display/Export.php')
-rw-r--r--libraries/classes/Display/Export.php22
1 files changed, 4 insertions, 18 deletions
diff --git a/libraries/classes/Display/Export.php b/libraries/classes/Display/Export.php
index 7b4e1ce938..f0166fb7f1 100644
--- a/libraries/classes/Display/Export.php
+++ b/libraries/classes/Display/Export.php
@@ -415,25 +415,11 @@ class Export
public static function getHtmlForExportOptionsOutputCharset()
{
global $cfg;
- $html = ' <li><label for="select_charset" class="desc">'
- . __('Character set of the file:') . '</label>' . "\n";
- $html .= '<select id="select_charset" name="charset" size="1">';
- foreach (Encoding::listEncodings() as $temp_charset) {
- $html .= '<option value="' . $temp_charset . '"';
- if (isset($_GET['charset'])
- && ($_GET['charset'] != $temp_charset)
- ) {
- $html .= '';
- } elseif ((empty($cfg['Export']['charset']) && $temp_charset == 'utf-8')
- || $temp_charset == $cfg['Export']['charset']
- ) {
- $html .= ' selected="selected"';
- }
- $html .= '>' . $temp_charset . '</option>';
- } // end foreach
- $html .= '</select></li>';
- return $html;
+ return Template::get('display/export/options_output_charset')->render([
+ 'encodings' => Encoding::listEncodings(),
+ 'export_charset' => $cfg['Export']['charset'],
+ ]);
}
/**