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 /db_export.php | |
parent | a0927dcc478ce071a04e33bad298526731406305 (diff) |
Refactor to remove display_export.inc.php
Signed-off-by: Marc Delisle <marc@infomarc.info>
Diffstat (limited to 'db_export.php')
-rw-r--r-- | db_export.php | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/db_export.php b/db_export.php index 6cf1be8b5e..e3323abfc3 100644 --- a/db_export.php +++ b/db_export.php @@ -131,5 +131,26 @@ foreach ($tables as $each_table) { $multi_values .= "\n"; $multi_values .= '</tbody></table></div>'; -$export_type = 'database'; -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( + 'database', $db, $table, $sql_query, $num_tables, + $unlim_num_rows, $multi_values + ) +); |