From: Greg Sabino Mullane Date: Thu, 29 Mar 2007 19:00:50 +0000 (+0000) Subject: Note lack of closing ?> in a comment, to reduce bug reports. X-Git-Tag: 1.31.0-rc.0~53537 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=62335a5255f49c080e7467a85a8f7952f6e66f8c;p=lhc%2Fweb%2Fwiklou.git Note lack of closing ?> in a comment, to reduce bug reports. --- 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' );