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

@@ -9,6 +9,7 @@ $Source$
* libraries/select_lang.lib.php: Simplify code. * libraries/select_lang.lib.php: Simplify code.
* libraries/common.lib.php: Allow collation change for ENUM and SET * libraries/common.lib.php: Allow collation change for ENUM and SET
columns (bug #1343627). columns (bug #1343627).
* main.php: Use normal message on reload, not just plain text.
2005-10-30 Michal Čihař <michal@cihar.com> 2005-10-30 Michal Čihař <michal@cihar.com>
* lang/slovak: Update, thanks to Ivan Kuriscak - shylauda69. * lang/slovak: Update, thanks to Ivan Kuriscak - shylauda69.

View File

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