Remove unused parameters
Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
parent
9764ec4968
commit
1bfdfd7dce
@ -79,8 +79,7 @@ function PMA_getHtmlForCreateNewColumn(
|
||||
$available_mime = array();
|
||||
$mime_map = array();
|
||||
$header_cells = PMA_getHeaderCells(
|
||||
true, null,
|
||||
$cfgRelation['mimework'], $db, $table
|
||||
true, null, $cfgRelation['mimework']
|
||||
);
|
||||
if ($cfgRelation['mimework'] && $GLOBALS['cfg']['BrowseMIME']) {
|
||||
$mime_map = PMA_getMIME($db, $table);
|
||||
|
||||
@ -75,7 +75,7 @@ if ($cfgRelation['mimework'] && $GLOBALS['cfg']['BrowseMIME']) {
|
||||
|
||||
$header_cells = PMA_getHeaderCells(
|
||||
$is_backup, isset($fields_meta) ? $fields_meta : null,
|
||||
$cfgRelation['mimework'], $db, $table
|
||||
$cfgRelation['mimework']
|
||||
);
|
||||
|
||||
// workaround for field_fulltext, because its submitted indices contain
|
||||
|
||||
@ -284,12 +284,10 @@ function PMA_getHtmlForTableCreateOrAddField($action, $form_params, $content_cel
|
||||
* @param bool $is_backup whether backup or not
|
||||
* @param array|null $columnMeta column meta data
|
||||
* @param bool $mimework whether mimework or not
|
||||
* @param string $db current database
|
||||
* @param string $table current table
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function PMA_getHeaderCells($is_backup, $columnMeta, $mimework, $db, $table)
|
||||
function PMA_getHeaderCells($is_backup, $columnMeta, $mimework)
|
||||
{
|
||||
$header_cells = array();
|
||||
$header_cells[] = __('Name');
|
||||
|
||||
@ -359,7 +359,7 @@ class PMA_TblColumnsDefinitionFormTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
$GLOBALS['cfg']['BrowseMIME'] = true;
|
||||
$GLOBALS['cfg']['ShowHint'] = false;
|
||||
$result = PMA_getHeaderCells(false, array(), true, 'db', 'table');
|
||||
$result = PMA_getHeaderCells(false, array(), true);
|
||||
|
||||
$this->assertContains(
|
||||
'Index',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user