Using the synchronize databases button did not work when one of the servers was not remote

This commit is contained in:
Marc Delisle
2009-10-04 10:34:11 +00:00
parent fb6667d551
commit 4af9cd152b

View File

@@ -1085,8 +1085,16 @@ if (isset($_REQUEST['synchronize_db'])) {
/**
* connecting the source and target servers
*/
$src_link = PMA_DBI_connect($src_username, $src_password, $is_controluser = false);
$trg_link = PMA_DBI_connect($trg_username, $trg_password, $is_controluser = false);
if ('rmt' == $_SESSION['src_type']) {
$src_link = PMA_DBI_connect($src_username, $src_password, $is_controluser = false, $_SESSION['src_server']);
} else {
$src_link = $GLOBALS['userlink'];
}
if ('rmt' == $_SESSION['trg_type']) {
$trg_link = PMA_DBI_connect($trg_username, $trg_password, $is_controluser = false, $_SESSION['trg_server']);
} else {
$trg_link = $GLOBALS['userlink'];
}
/**
* Displaying the queries.