Use normal message on reload, not just plain text.
This commit is contained in:
@@ -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.
|
||||||
|
14
main.php
14
main.php
@@ -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>
|
||||||
|
Reference in New Issue
Block a user