r68944 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68943‎ | r68944 | r68945 >
Date:13:37, 3 July 2010
Author:ialex
Status:ok
Tags:
Comment:
Fix E_STRICT about different function signature
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUpload.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUpload.php
@@ -1083,7 +1083,7 @@
10841084 * A form field that contains a radio box in the label
10851085 */
10861086 class UploadSourceField extends HTMLTextField {
1087 - function getLabelHtml() {
 1087+ function getLabelHtml( $cellAttributes = array() ) {
10881088 $id = "wpSourceType{$this->mParams['upload-type']}";
10891089 $label = Html::rawElement( 'label', array( 'for' => $id ), $this->mLabel );
10901090
@@ -1100,7 +1100,7 @@
11011101 $label .= Html::element( 'input', $attribs );
11021102 }
11031103
1104 - return Html::rawElement( 'td', array( 'class' => 'mw-label' ), $label );
 1104+ return Html::rawElement( 'td', array( 'class' => 'mw-label' ) + $cellAttributes, $label );
11051105 }
11061106
11071107 function getSize() {

Status & tagging log