Contributions: Only add form JS when the form is added
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Mon, 19 Feb 2018 11:53:47 +0000 (12:53 +0100)
committerDerk-Jan Hartman <hartman.wiki@gmail.com>
Wed, 21 Feb 2018 09:47:13 +0000 (10:47 +0100)
commit0e8f08bb12333705c8efa05793adabbe7a59d9ce
treed0d2fa78d6369e5cae00406b1ba81a8f278545e8
parent4dd733cdcbf0f9959aa2a6a7ab8912e175aebfdd
Contributions: Only add form JS when the form is added

Special:Contributions can be transcluded ('including') on to another
page. In this mode, the form is not present, but the OOUI JS infusing,
payload and styling, was added regardless. This caused errors on pages
transcluding such lists, as the OOUI HTML was missing, causing the JS to
throw errors.

Bug: T187710
Change-Id: I7d45dd3ddd3ba75d44f7d24e03cef5e95301f4ed
includes/specials/SpecialContributions.php