Make Installer::parse not be parseAsBlock
authorBrian Wolff <bawolff+wn@gmail.com>
Mon, 8 Apr 2019 02:24:57 +0000 (02:24 +0000)
committerBrian Wolff <bawolff+wn@gmail.com>
Mon, 14 Oct 2019 05:21:38 +0000 (22:21 -0700)
Previously all the checkboxes had newlines before their labels
which looked really broken.

Change-Id: I5e17524d90d10867ed27553a90cfb246984486d3

RELEASE-NOTES-1.31
includes/installer/Installer.php

index 10cc2e6..2a4ac43 100644 (file)
@@ -3,6 +3,7 @@
 THIS IS NOT A RELEASE YET
 
 === Changes since MediaWiki 1.31.4 ===
+* Fix extra newlines in installer.
 * Followup T230402, PermissionManager doesn't exist until 1.33, so fix the
   backported patches to use User::isAllowed() instead.
 
index abf4de4..f4512e4 100644 (file)
@@ -697,6 +697,7 @@ abstract class Installer {
                                'enableSectionEditLinks' => false,
                                'unwrap' => true,
                        ] );
+                       $html = Parser::stripOuterParagraph( $html );
                } catch ( MediaWiki\Services\ServiceDisabledException $e ) {
                        $html = '<!--DB access attempted during parse-->  ' . htmlspecialchars( $text );
                }