Use same order of database and table params as elsewhere
This commit is contained in:
parent
5b54551280
commit
347fca5b86
@ -40,13 +40,13 @@ function PMA_tbl_setTitle($propertiesIconic, $pmaThemeImage)
|
||||
* Gets all the fields of a table along with their types, collations
|
||||
* and whether null or not.
|
||||
*
|
||||
* @param string $table Selected table
|
||||
* @param string $db Selected database
|
||||
* @param string $table Selected table
|
||||
*
|
||||
* @return array Array containing the field list, field types, collations
|
||||
* and null constraint
|
||||
*/
|
||||
function PMA_tbl_getFields($table,$db)
|
||||
function PMA_tbl_getFields($db, $table)
|
||||
{
|
||||
// Gets the list and number of fields
|
||||
$fields = PMA_DBI_get_columns($db, $table, true);
|
||||
|
||||
@ -63,7 +63,7 @@ if (! isset($param) || $param[0] == '') {
|
||||
$err_url = $goto . '?' . PMA_generate_common_url($db, $table);
|
||||
|
||||
// Gets the list and number of fields
|
||||
list($fields_list, $fields_type, $fields_collation, $fields_null, $geom_column_present) = PMA_tbl_getFields($table,$db);
|
||||
list($fields_list, $fields_type, $fields_collation, $fields_null, $geom_column_present) = PMA_tbl_getFields($db, $table);
|
||||
$fields_cnt = count($fields_list);
|
||||
|
||||
// retrieve keys into foreign fields, if any
|
||||
|
||||
@ -73,7 +73,7 @@ $err_url = $goto . '?' . PMA_generate_common_url($db, $table);
|
||||
|
||||
// Gets the list and number of fields
|
||||
|
||||
list($fields_list, $fields_type, $fields_collation, $fields_null) = PMA_tbl_getFields($table,$db);
|
||||
list($fields_list, $fields_type, $fields_collation, $fields_null) = PMA_tbl_getFields($db, $table);
|
||||
$fields_cnt = count($fields_list);
|
||||
|
||||
// retrieve keys into foreign fields, if any
|
||||
|
||||
Loading…
Reference in New Issue
Block a user