From 518bfb636206ac6dce3221ae61315155fff9674e Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Sun, 13 Aug 2006 02:42:22 +0000 Subject: [PATCH] Remove 4.3.2 php version check, as we require 5 now. --- config/index.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/config/index.php b/config/index.php index 875e43bc42..960b9fffe9 100644 --- a/config/index.php +++ b/config/index.php @@ -881,13 +881,7 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) { $localSettings = "<" . "?php$endl$local$endl?" . ">"; // Fix up a common line-ending problem (due to CVS on Windows) $localSettings = str_replace( "\r\n", "\n", $localSettings ); - - if( version_compare( phpversion(), "4.3.2" ) >= 0 ) { - $xt = "xt"; # Refuse to overwrite an existing file - } else { - $xt = "wt"; # 'x' is not available prior to PHP 4.3.2. We did check above, but race conditions blah blah - } - $f = fopen( "LocalSettings.php", $xt ); + $f = fopen( "LocalSettings.php", 'xt' ); if( $f == false ) { dieout( "

Couldn't write out LocalSettings.php. Check that the directory permissions are correct and that there isn't already a file of that name here...

\n" . -- 2.20.1