Fix group separator in installer's sidebar
authorm4tx <m4tx@m4tx.pl>
Mon, 1 Dec 2014 19:23:43 +0000 (20:23 +0100)
committerm4tx <m4tx@m4tx.pl>
Mon, 1 Dec 2014 19:31:36 +0000 (20:31 +0100)
Uses explode() to split the sections and puts correct separators between them.

Bug: T39362
Change-Id: I9a287b6ac206debb9bd93dbfad0703a8fad0931f

includes/installer/WebInstallerOutput.php

index 22fb1df..8ff3d2f 100644 (file)
@@ -296,11 +296,14 @@ class WebInstallerOutput {
                href="https://www.mediawiki.org/"
                title="Main Page"></a>
        </div>
-       <div class="portal"><div class="body">
 <?php
-       echo $this->parent->parse( wfMessage( 'config-sidebar' )->plain(), true );
+       $message = wfMessage( 'config-sidebar' )->plain();
+       foreach( explode( '----', $message ) as $section ) {
+               echo '<div class="portal"><div class="body">';
+               echo $this->parent->parse( $section, true );
+               echo '</div></div>';
+       }
 ?>
-       </div></div>
 </div>
 
 <?php