make use of PMA_Message

This commit is contained in:
Sebastian Mendel
2007-10-16 12:14:19 +00:00
parent 86acb749a4
commit 107fc46ad9
14 changed files with 103 additions and 91 deletions

View File

@@ -21,10 +21,11 @@ require_once './libraries/server_common.inc.php';
*/
if (!empty($kill)) {
if (PMA_DBI_try_query('KILL ' . $kill . ';')) {
$message = sprintf($strThreadSuccessfullyKilled, $kill);
$message = PMA_Message::success('strThreadSuccessfullyKilled');
} else {
$message = sprintf($strCouldNotKill, $kill);
$message = PMA_Message::error('strCouldNotKill');
}
$message->addParam($kill);
}