make use of PMA_Message
preserver already defined message from mult_submits.inc.php
This commit is contained in:
@@ -22,7 +22,9 @@ if (empty($is_info)) {
|
||||
$action = 'db_structure.php';
|
||||
$err_url = 'db_structure.php?'. PMA_generate_common_url($db);
|
||||
require './libraries/mult_submits.inc.php';
|
||||
$message = $strSuccess;
|
||||
if (empty($message)) {
|
||||
$message = PMA_Message::success();
|
||||
}
|
||||
}
|
||||
require './libraries/db_common.inc.php';
|
||||
$url_query .= '&goto=db_structure.php';
|
||||
|
@@ -57,12 +57,16 @@ 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 (empty($message)) {
|
||||
$message = new PMA_Message('strDatabasesDropped');
|
||||
if ($mult_btn == $strYes) {
|
||||
$message = sprintf($strDatabasesDropped, count($selected));
|
||||
$message->addParam(count($selected));
|
||||
} else {
|
||||
$message = sprintf($strDatabasesDropped, 0);
|
||||
$message->addParam(0);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user