From dd2741245618cb71d482b8edacb6c83738c99a24 Mon Sep 17 00:00:00 2001 From: Gregory Szorc Date: Sat, 3 Feb 2007 06:52:37 +0000 Subject: [PATCH] Removed optional '?>' from end of generated config file This will prevent people with poor editors (Windows) from accidentally introducing blank lines after the '?>', which we all know breaks XML output --- config/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/index.php b/config/index.php index 47ad78ca9c..b2165c426f 100644 --- a/config/index.php +++ b/config/index.php @@ -912,7 +912,7 @@ 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\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' ); -- 2.20.1