From: Greg Sabino Mullane Date: Sun, 13 Aug 2006 02:42:22 +0000 (+0000) Subject: Remove 4.3.2 php version check, as we require 5 now. X-Git-Tag: 1.31.0-rc.0~56008 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=518bfb636206ac6dce3221ae61315155fff9674e;p=lhc%2Fweb%2Fwiklou.git Remove 4.3.2 php version check, as we require 5 now. --- 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" .