Use normal message on reload, not just plain text.

This commit is contained in:
Michal Čihař
2005-10-31 12:09:10 +00:00
parent aff64fa5ee
commit e5d60f74e3
2 changed files with 10 additions and 5 deletions

View File

@@ -111,15 +111,19 @@ if (isset($message)) {
* Reload mysql (flush privileges)
*/
if (($server > 0) && isset($mode) && ($mode == 'reload')) {
$result = PMA_DBI_query('FLUSH PRIVILEGES');
echo '<p><b>';
$sql_query = 'FLUSH PRIVILEGES';
$result = PMA_DBI_query($sql_query);
if ($result != 0) {
echo $strMySQLReloaded;
$message = $strMySQLReloaded;
} else {
echo $strReloadFailed;
$show_error_header = TRUE;
$message = $strReloadFailed;
}
PMA_showMessage($message);
$show_error_header = FALSE;
unset($result);
echo '</b></p>' . "\n\n";
unset($sql_query);
unset($message);
}
?>
</td>