diff --git a/ChangeLog b/ChangeLog index fa77f86a4..d59a0d984 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ $Source$ * libraries/select_lang.lib.php: Simplify code. * libraries/common.lib.php: Allow collation change for ENUM and SET columns (bug #1343627). + * main.php: Use normal message on reload, not just plain text. 2005-10-30 Michal Čihař * lang/slovak: Update, thanks to Ivan Kuriscak - shylauda69. diff --git a/main.php b/main.php index 0c3ce9c08..fbc01a169 100644 --- a/main.php +++ b/main.php @@ -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 '

'; + $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 '

' . "\n\n"; + unset($sql_query); + unset($message); } ?>