Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/QA_4_0' into QA_4_0
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed May 21, 2013
2 parents 203a406 + ef4d936 commit 7c641c3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -18,6 +18,7 @@ phpMyAdmin - ChangeLog
- bug Missing CREATE DATABASE statement when exporting at database level
- bug #3924 Show warning when CSV file does not contain data for all columns
- bug #3947 Missing Sql Query after modify structure
- bug #3948 Server export problems

4.0.1.0 (2013-05-14)
- bug #3879 Import broken for CSV using LOAD DATA
Expand Down
12 changes: 7 additions & 5 deletions db_export.php
Expand Up @@ -40,7 +40,7 @@
$multi_values .= __('Select All');
$multi_values .= '</a>';
$multi_values .= ' / ';
$multi_values .= '<a href="#';
$multi_values .= '<a href="#"';
$multi_values .= ' onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">';
$multi_values .= __('Unselect All');
$multi_values .= '</a><br />';
Expand All @@ -66,10 +66,12 @@
} else {
$is_selected = '';
}
} elseif (! empty($unselectall)
|| (! empty($table_select) && !in_array($each_table['Name'], $table_select))
) {
$is_selected = '';
} elseif (isset($table_select)) {
if (in_array($each_table['Name'], $table_select)) {
$is_selected = ' selected="selected"';
} else {
$is_selected = '';
}
} else {
$is_selected = ' selected="selected"';
}
Expand Down
5 changes: 2 additions & 3 deletions export.php
Expand Up @@ -633,9 +633,8 @@ function PMA_exportOutputHandler($line)
}
// Walk over databases
foreach ($GLOBALS['pma']->databases as $current_db) {
if ((isset($tmp_select)
&& strpos(' ' . $tmp_select, '|' . $current_db . '|'))
|| ! isset($tmp_select)
if (isset($tmp_select)
&& strpos(' ' . $tmp_select, '|' . $current_db . '|')
) {
if (! $export_plugin->exportDBHeader($current_db)) {
break 2;
Expand Down
18 changes: 13 additions & 5 deletions server_export.php
Expand Up @@ -39,18 +39,26 @@
}

foreach ($GLOBALS['pma']->databases as $current_db) {
if ($current_db == 'information_schema'
|| $current_db == 'performance_schema'
|| $current_db == 'mysql'
) {
continue;
}
if (isset($_GET['db_select'])) {
if (in_array($current_db, $_GET['db_select'])) {
$is_selected = ' selected="selected"';
} else {
$is_selected = '';
}
} elseif (! empty($selectall)
|| (isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $current_db . '|'))
) {
$is_selected = ' selected="selected"';
} elseif (isset($tmp_select)) {
if (strpos(' ' . $tmp_select, '|' . $current_db . '|')) {
$is_selected = ' selected="selected"';
} else {
$is_selected = '';
}
} else {
$is_selected = '';
$is_selected = ' selected="selected"';
}
$current_db = htmlspecialchars($current_db);
$multi_values .= ' <option value="' . $current_db . '"'
Expand Down

0 comments on commit 7c641c3

Please sign in to comment.