installer: Disable <div> wrapping of parsed content
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 10 Aug 2017 17:05:00 +0000 (13:05 -0400)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 10 Aug 2017 17:05:00 +0000 (13:05 -0400)
The mw-parser-output wrapper breaks the visual layout of the installer,
causing the radio button or checkbox to be one line above the text that
describes it.

Change-Id: I0a7ec34d80d6372927fd89b7752bc08ab0395308

includes/installer/Installer.php

index 168d7ed..573a92d 100644 (file)
@@ -446,6 +446,7 @@ abstract class Installer {
                $this->parserTitle = Title::newFromText( 'Installer' );
                $this->parserOptions = new ParserOptions( $wgUser ); // language will be wrong :(
                $this->parserOptions->setEditSection( false );
+               $this->parserOptions->setWrapOutputClass( false );
                // Don't try to access DB before user language is initialised
                $this->setParserLanguage( Language::factory( 'en' ) );
        }