(bug 40889) Fix XHTML in Special:Upload form labels
[lhc/web/wiklou.git] / includes / specials / SpecialUpload.php
index a061963..e3a4c3a 100644 (file)
@@ -1107,7 +1107,7 @@ class UploadSourceField extends HTMLTextField {
         * @return string
         */
        function getLabelHtml( $cellAttributes = array() ) {
-               $id = "wpSourceType{$this->mParams['upload-type']}";
+               $id = $this->mParams['id'];
                $label = Html::rawElement( 'label', array( 'for' => $id ), $this->mLabel );
 
                if ( !empty( $this->mParams['radio'] ) ) {