diff options
author | Marc Delisle <marc@infomarc.info> | 2015-09-11 18:44:26 +0300 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2015-09-11 18:44:26 +0300 |
commit | 27e54fb194aaa527980bc2151371dacb29e9e3d9 (patch) | |
tree | 27db3b964e23dd4bc2e7255ca532085aa7ec99c1 /tbl_export.php | |
parent | a0927dcc478ce071a04e33bad298526731406305 (diff) |
Refactor to remove display_export.inc.php
Signed-off-by: Marc Delisle <marc@infomarc.info>
Diffstat (limited to 'tbl_export.php')
-rw-r--r-- | tbl_export.php | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/tbl_export.php b/tbl_export.php index afbe4fb9f1..7b506024b8 100644 --- a/tbl_export.php +++ b/tbl_export.php @@ -173,5 +173,27 @@ if (! empty($sql_query)) { echo PMA_Util::getMessage(PMA_Message::success()); } -$export_type = 'table'; -require_once 'libraries/display_export.inc.php'; +require_once 'libraries/display_export.lib.php'; + +if (! isset($sql_query)) { + $sql_query = ''; +} +if (! isset($num_tables)) { + $num_tables = 0; +} +if (! isset($num_tables)) { + $num_tables = 0; +} +if (! isset($unlim_num_rows)) { + $unlim_num_rows = 0; +} +if (! isset($multi_values)) { + $multi_values = ''; +} +$response = PMA_Response::getInstance(); +$response->addHTML( + PMA_getExportDisplay( + 'table', $db, $table, $sql_query, $num_tables, + $unlim_num_rows, $multi_values + ) +); |