Fix missing mw-ui-button on Login and create page
authorFlorianschmidtwelzow <florian.schmidt.welzow@t-online.de>
Fri, 3 Oct 2014 19:19:52 +0000 (21:19 +0200)
committerFlorianschmidtwelzow <florian.schmidt.welzow@t-online.de>
Fri, 3 Oct 2014 20:23:27 +0000 (22:23 +0200)
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

includes/specials/SpecialUserlogin.php

index edd1a60..bdd6751 100644 (file)
@@ -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;
        }
 
        /**