Remove superfluous newlines from end of generated LocalSettings.php files
authorRob Church <robchurch@users.mediawiki.org>
Mon, 4 Jun 2007 02:25:13 +0000 (02:25 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 4 Jun 2007 02:25:13 +0000 (02:25 +0000)
config/index.php

index e0671e5..75db7d0 100644 (file)
@@ -968,7 +968,7 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                /* Write out the config file now that all is well */
                print "<li style=\"list-style: none\">\n";
                print "<p>Creating LocalSettings.php...</p>\n\n";
-               $localSettings = "<" . "?php$endl$local$endl\r\n";
+               $localSettings = "<" . "?php$endl$local";
                // Fix up a common line-ending problem (due to CVS on Windows)
                $localSettings = str_replace( "\r\n", "\n", $localSettings );
                $f = fopen( "LocalSettings.php", 'xt' );