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

@@ -22,7 +22,9 @@ if (empty($is_info)) {
$action = 'db_structure.php'; $action = 'db_structure.php';
$err_url = 'db_structure.php?'. PMA_generate_common_url($db); $err_url = 'db_structure.php?'. PMA_generate_common_url($db);
require './libraries/mult_submits.inc.php'; require './libraries/mult_submits.inc.php';
$message = $strSuccess; if (empty($message)) {
$message = PMA_Message::success();
}
} }
require './libraries/db_common.inc.php'; require './libraries/db_common.inc.php';
$url_query .= '&goto=db_structure.php'; $url_query .= '&goto=db_structure.php';

View File

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