Trim $dbSupport in WebInstallerPage.php
authorLiangent <liangent@gmail.com>
Fri, 10 Aug 2012 15:11:07 +0000 (23:11 +0800)
committerLiangent <liangent@gmail.com>
Fri, 10 Aug 2012 15:11:07 +0000 (23:11 +0800)
This removes the trailing "\n" which introduces an extra new line.

Change-Id: I74d5d1c95259ca5144932fbe8aa50cb69e036054

includes/installer/WebInstallerPage.php

index c10fe88..917a59a 100644 (file)
@@ -457,7 +457,7 @@ class WebInstaller_DBConnect extends WebInstallerPage {
                        $dbSupport .= wfMsgNoTrans( "config-support-$type", $link ) . "\n";
                }
                $this->addHTML( $this->parent->getInfoBox(
-                       wfMsg( 'config-support-info', $dbSupport ) ) );
+                       wfMsg( 'config-support-info', trim( $dbSupport ) ) ) );
 
                foreach ( $this->parent->getVar( '_CompiledDBs' ) as $type ) {
                        $installer = $this->parent->getDBInstaller( $type );