From: Alexandre Emsenhuber Date: Sat, 3 Jul 2010 13:37:49 +0000 (+0000) Subject: Fix E_STRICT about different function signature X-Git-Tag: 1.31.0-rc.0~36288 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=f0b86de29bfc32104fe92eeee1e61c46b9229f13;p=lhc%2Fweb%2Fwiklou.git Fix E_STRICT about different function signature --- diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index dc1da4aedb..65cbfaae72 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -1083,7 +1083,7 @@ class UploadForm extends HTMLForm { * A form field that contains a radio box in the label */ class UploadSourceField extends HTMLTextField { - function getLabelHtml() { + function getLabelHtml( $cellAttributes = array() ) { $id = "wpSourceType{$this->mParams['upload-type']}"; $label = Html::rawElement( 'label', array( 'for' => $id ), $this->mLabel ); @@ -1100,7 +1100,7 @@ class UploadSourceField extends HTMLTextField { $label .= Html::element( 'input', $attribs ); } - return Html::rawElement( 'td', array( 'class' => 'mw-label' ), $label ); + return Html::rawElement( 'td', array( 'class' => 'mw-label' ) + $cellAttributes, $label ); } function getSize() {