diff options
author | Marc Delisle <marc@infomarc.info> | 2011-02-13 22:00:14 +0300 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2011-02-13 22:00:14 +0300 |
commit | 1484ca6c00d132f2215d25d8fd71d026fbb4701c (patch) | |
tree | 1a9a9f58d56f13132b7e3afd7f30c53e9384ca11 /export.php | |
parent | 708638e1dd30ef8b9d6c92ab749eb01587f35242 (diff) |
Procedures and functions should be exported also when entering Export on a single db
Diffstat (limited to 'export.php')
-rw-r--r-- | export.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/export.php b/export.php index 26154962e1..7da25fc051 100644 --- a/export.php +++ b/export.php @@ -458,6 +458,10 @@ if ($export_type == 'server') { if (!PMA_exportDBCreate($current_db)) { break 2; } + if (function_exists('PMA_exportRoutines') && strpos($GLOBALS['sql_structure_or_data'], 'structure') !== false && isset($GLOBALS['sql_procedure_function'])) { + PMA_exportRoutines($current_db); + } + $tables = PMA_DBI_get_tables($current_db); $views = array(); foreach ($tables as $table) { @@ -506,6 +510,11 @@ if ($export_type == 'server') { if (!PMA_exportDBHeader($db)) { break; } + + if (function_exists('PMA_exportRoutines') && strpos($GLOBALS['sql_structure_or_data'], 'structure') !== false && isset($GLOBALS['sql_procedure_function'])) { + PMA_exportRoutines($db); + } + $i = 0; $views = array(); // $tables contains the choices from the user (via $table_select) |