Note lack of closing ?> in a comment, to reduce bug reports.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Thu, 29 Mar 2007 19:00:50 +0000 (19:00 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Thu, 29 Mar 2007 19:00:50 +0000 (19:00 +0000)
config/index.php

index 51dbcc5..73d26d5 100644 (file)
@@ -927,7 +927,9 @@ 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$endl\n";
+               $localSettings .= "## The closing ?> has been left out on purpose.\n\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' );