Html: Make addition of 'mw-ui-input' conditional on $wgUseMediaWikiUIEverywhere
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 13 Mar 2015 18:49:15 +0000 (19:49 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 13 Mar 2015 19:02:34 +0000 (19:02 +0000)
commit896fdb3d974071a563f31f43eaebb37d7093e76e
tree38550a731c44fb60cc8403d4946b471cfc8ea908
parent2b1ee195a07a67c00d11301a563b13d53f3d04af
Html: Make addition of 'mw-ui-input' conditional on $wgUseMediaWikiUIEverywhere

We were always adding it previously, which seemed harmless since
'mediawiki.ui.input' RL module, providing the styling, was only loaded
if $wgUseMediaWikiUIEverywhere was true… unless someone loaded it
manually to have specific input fields styled. Whoops.

There are a lot more unconditional additions like this in tons of
places in the code, and someone should check whether each one is
intentional or not, but probably no one will. Oh well.

Bug: T92496
Change-Id: I5e91a3852a76ebbbfe64485bccb4c30ddee28b66
includes/Html.php
tests/phpunit/includes/HtmlTest.php
tests/phpunit/includes/XmlTest.php