From 62335a5255f49c080e7467a85a8f7952f6e66f8c Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Thu, 29 Mar 2007 19:00:50 +0000 Subject: [PATCH] Note lack of closing ?> in a comment, to reduce bug reports. --- config/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/index.php b/config/index.php index 51dbcc5ed1..73d26d5172 100644 --- a/config/index.php +++ b/config/index.php @@ -927,7 +927,9 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) { /* Write out the config file now that all is well */ print "
  • \n"; print "

    Creating LocalSettings.php...

    \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' ); -- 2.20.1