diff --git a/db_operations.php b/db_operations.php index 8ba13a28b..44e93b232 100644 --- a/db_operations.php +++ b/db_operations.php @@ -121,7 +121,7 @@ if (strlen($db) && (! empty($db_rename) || ! empty($db_copy))) { if ($this_what != 'nocopy') { // keep the triggers from the original db+table - // (third param is empty because delimiters are only intended + // (third param is empty because delimiters are only intended // for importing via the mysql client or our Import feature) $triggers = PMA_DBI_get_triggers($db, $each_table, ''); @@ -141,7 +141,7 @@ if (strlen($db) && (! empty($db_rename) || ! empty($db_copy))) { } unset($trigger); } - unset($triggers); + unset($triggers); // this does not apply to a rename operation if (isset($GLOBALS['add_constraints']) && !empty($GLOBALS['sql_constraints_query'])) { @@ -631,72 +631,8 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) { ?> WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''; $test_rs = PMA_query_as_controluser($test_query, null, PMA_DBI_QUERY_STORE); - if ($test_rs && PMA_DBI_num_rows($test_rs) > 0) { ?> - -
-
- - '; - } - echo __('Display PDF schema'); - ?>: - - -
- - -
- -
- -
- -
- -
- -
- - -
- - - -
-
- -
-
- 0) { + include('./libraries/display_pdf_schema.lib.php'); } // end if echo '
'; if ($cfg['PropertiesIconic']) { diff --git a/libraries/display_pdf_schema.lib.php b/libraries/display_pdf_schema.lib.php new file mode 100644 index 000000000..ad12fc3d6 --- /dev/null +++ b/libraries/display_pdf_schema.lib.php @@ -0,0 +1,71 @@ + +
+
+ + '; + } + echo __('Display PDF schema'); + ?>: + + + +
+ + + + + +
+ +
+ +
+ +
+ +
+ +
+ + +
+ + + +
+
+ +
+
+ diff --git a/pdf_pages.php b/pdf_pages.php index 818a2356a..ac5e215ae 100644 --- a/pdf_pages.php +++ b/pdf_pages.php @@ -532,39 +532,7 @@ function resetDrag() { && ($do == 'edcoord' || ($do == 'choosepage' && isset($chpage)) || ($do == 'createpage' && isset($chpage)))) { - ?> -
- - - - ' . __('Display PDF schema') . ''; ?>: 
-
-
-
-
-
-
- -
- - -
-    -
-