Make sure LocalSettings.php ends in a newline.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 3 Sep 2006 01:14:11 +0000 (01:14 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 3 Sep 2006 01:14:11 +0000 (01:14 +0000)
config/index.php

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