Merge "Fix input regression affecting HTMLForms that use VForm"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 1 Oct 2014 16:50:02 +0000 (16:50 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 1 Oct 2014 16:50:02 +0000 (16:50 +0000)
includes/htmlform/HTMLForm.php

index 6589b2a..4511046 100644 (file)
@@ -788,9 +788,14 @@ class HTMLForm extends ContextSource {
                $this->getOutput()->preventClickjacking();
                $this->getOutput()->addModules( 'mediawiki.htmlform' );
                if ( $this->isVForm() ) {
+                       // This is required for VForm HTMLForms that use that style regardless
+                       // of wgUseMediaWikiUIEverywhere (since they pre-date it).
+                       // When wgUseMediaWikiUIEverywhere is removed, this should be consolidated
+                       // with the addModuleStyles in SpecialPage->setHeaders.
                        $this->getOutput()->addModuleStyles( array(
                                'mediawiki.ui',
                                'mediawiki.ui.button',
+                               'mediawiki.ui.input',
                        ) );
                        // @todo Should vertical form set setWrapperLegend( false )
                        // to hide ugly fieldsets?