make use of PMA_Message

preserver already defined message from mult_submits.inc.php
This commit is contained in:
Sebastian Mendel
2007-10-12 08:16:25 +00:00
parent 10130dd9e3
commit f8b5b6e94a
2 changed files with 11 additions and 5 deletions

View File

@@ -57,11 +57,15 @@ if ((isset($_REQUEST['drop_selected_dbs']) || isset($_REQUEST['query_type']))
}
require './libraries/mult_submits.inc.php';
unset($action, $submit_mult, $err_url, $selected_db);
if ($mult_btn == $strYes) {
$message = sprintf($strDatabasesDropped, count($selected));
} else {
$message = sprintf($strDatabasesDropped, 0);
if (empty($message)) {
$message = new PMA_Message('strDatabasesDropped');
if ($mult_btn == $strYes) {
$message->addParam(count($selected));
} else {
$message->addParam(0);
}
}
}
}