Remove 4.3.2 php version check, as we require 5 now.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 13 Aug 2006 02:42:22 +0000 (02:42 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 13 Aug 2006 02:42:22 +0000 (02:42 +0000)
config/index.php

index 875e43b..960b9ff 100644 (file)
@@ -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( "<p>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...</p>\n" .