improve a function name
This commit is contained in:
parent
d2e720af28
commit
83368f096f
@ -1183,7 +1183,7 @@ function PMA_getMessageAndSqlQueryForPrivilegesRevoke($db_and_table, $dbname,
|
||||
*
|
||||
* @return string $sql_query
|
||||
*/
|
||||
function PMA_getCommonSqlQueryForAddUserAndUpdatePrivs()
|
||||
function PMA_getWithClauseForAddUserAndUpdatePrivs()
|
||||
{
|
||||
$sql_query = 'WITH';
|
||||
if (isset($_POST['Grant_priv']) && $_POST['Grant_priv'] == 'Y') {
|
||||
@ -2460,7 +2460,7 @@ function PMA_updatePrivileges($username, $hostname)
|
||||
&& (isset($_POST['max_questions']) || isset($_POST['max_connections'])
|
||||
|| isset($_POST['max_updates']) || isset($_POST['max_user_connections'])))
|
||||
) {
|
||||
$sql_query2 .= PMA_getCommonSqlQueryForAddUserAndUpdatePrivs();
|
||||
$sql_query2 .= PMA_getWithClauseForAddUserAndUpdatePrivs();
|
||||
}
|
||||
$sql_query2 .= ';';
|
||||
}
|
||||
|
||||
@ -278,7 +278,7 @@ if (isset($_REQUEST['adduser_submit']) || isset($_REQUEST['change_copy'])) {
|
||||
|| (isset($max_questions) || isset($max_connections)
|
||||
|| isset($max_updates) || isset($max_user_connections))
|
||||
) {
|
||||
$real_sql_query .= PMA_getCommonSqlQueryForAddUserAndUpdatePrivs();
|
||||
$real_sql_query .= PMA_getWithClauseForAddUserAndUpdatePrivs();
|
||||
$sql_query .= $real_sql_query;
|
||||
}
|
||||
if (isset($create_user_real)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user