r69623 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69622‎ | r69623 | r69624 >
Date:15:14, 20 July 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Fixed php notice
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_UploadWindow2.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_UploadWindow2.php
@@ -1046,10 +1046,11 @@
10471047 }
10481048
10491049 /**
1050 - * A form field that contains a radio box in the label
 1050+ * A form field that contains a radio box in the label.
10511051 */
10521052 class SFUploadSourceField extends HTMLTextField {
1053 - function getLabelHtml() {
 1053+
 1054+ function getLabelHtml( $cellAttributes = array() ) {
10541055 $id = "wpSourceType{$this->mParams['upload-type']}";
10551056 $label = Html::rawElement( 'label', array( 'for' => $id ), $this->mLabel );
10561057
@@ -1060,6 +1061,7 @@
10611062 'id' => $id,
10621063 'value' => $this->mParams['upload-type'],
10631064 );
 1065+
10641066 if ( !empty( $this->mParams['checked'] ) )
10651067 $attribs['checked'] = 'checked';
10661068 $label .= Html::element( 'input', $attribs );
@@ -1067,10 +1069,11 @@
10681070
10691071 return Html::rawElement( 'td', array( 'class' => 'mw-label' ), $label );
10701072 }
 1073+
10711074 function getSize() {
10721075 return isset( $this->mParams['size'] )
10731076 ? $this->mParams['size']
10741077 : 60;
10751078 }
1076 -}
1077 -
 1079+
 1080+}
\ No newline at end of file

Status & tagging log