Merge "(bug 40889) Fix XHTML in Special:Upload form labels"
authorIAlex <ialex.wiki@gmail.com>
Sun, 14 Oct 2012 10:07:12 +0000 (10:07 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 14 Oct 2012 10:07:12 +0000 (10:07 +0000)
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'] ) ) {