Remove unused parameters

Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
Marc Delisle 2015-04-23 07:57:14 -04:00
parent 9764ec4968
commit 1bfdfd7dce
4 changed files with 4 additions and 7 deletions

View File

@ -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);

View File

@ -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

View File

@ -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');

View File

@ -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',