From: Florianschmidtwelzow Date: Fri, 3 Oct 2014 19:19:52 +0000 (+0200) Subject: Fix missing mw-ui-button on Login and create page X-Git-Tag: 1.31.0-rc.0~13697 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=6865871a455927ae6f186dc410d4781c1e1f0718 Fix missing mw-ui-button on Login and create page Don't use modifiers for pages, which uses MW UI nativeley, modifiers will only be used, when wgUseMediaWikiUIEverywhere is set to true. This runs into inconsistent use of MWUI on one page. Follow up: I61bb3c358f755ed9f2153d94b744c1a9da02c456 Bug: 71618 Change-Id: I99d5803818e4c2719f92cab0d9036a1cbc3943ca --- diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index edd1a6039d..bdd6751ea8 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -105,9 +105,12 @@ class LoginForm extends SpecialPage { * @param WebRequest $request */ public function __construct( $request = null ) { + global $wgUseMediaWikiUIEverywhere; parent::__construct( 'Userlogin' ); $this->mOverrideRequest = $request; + // Override UseMediaWikiEverywhere to true, to force login and create form to use mw ui + $wgUseMediaWikiUIEverywhere = true; } /**