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:
authorMarc Delisle <marc@infomarc.info>2015-09-11 18:44:26 +0300
committerMarc Delisle <marc@infomarc.info>2015-09-11 18:44:26 +0300
commit27e54fb194aaa527980bc2151371dacb29e9e3d9 (patch)
tree27db3b964e23dd4bc2e7255ca532085aa7ec99c1 /db_export.php
parenta0927dcc478ce071a04e33bad298526731406305 (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.php25
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
+ )
+);