fix multi-server login bug introduced in revision 10855; ensure that the new _form_params are really used by the called function; missing doc for PMA_generate_common_hidden_inputs()

This commit is contained in:
Marc Delisle
2007-10-26 17:08:12 +00:00
parent 518cb592e5
commit f1a266c778
2 changed files with 6 additions and 1 deletions

View File

@@ -284,7 +284,9 @@ if (top != self) {
if (! empty($GLOBALS['table'])) { if (! empty($GLOBALS['table'])) {
$_form_params['table'] = $GLOBALS['table']; $_form_params['table'] = $GLOBALS['table'];
} }
echo PMA_generate_common_hidden_inputs(); // do not generate a "server" hidden field as we want the "server"
// drop-down to have priority
echo PMA_generate_common_hidden_inputs($_form_params, '', 0, 'server');
?> ?>
</fieldset> </fieldset>
</form> </form>

View File

@@ -12,8 +12,11 @@
* @see PMA_generate_common_url() * @see PMA_generate_common_url()
* @uses PMA_getHiddenFields * @uses PMA_getHiddenFields
* @param string optional database name * @param string optional database name
* (can also be an array of parameters)
* @param string optional table name * @param string optional table name
* @param int indenting level * @param int indenting level
* @param string do not generate a hidden field for this parameter
* (can be an array of strings)
* *
* @return string string with input fields * @return string string with input fields
* *