X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=load.php;h=1dd1a8939ccaf03175937a1978d9a81bb821d1b3;hb=cc543d28e14d7ef96a79cef539addb12708fd724;hp=6ffc14587efce6dd210844766504b5a2c944d2f6;hpb=5ce08fdacdb91f9a19649abaa63875aa60d33741;p=lhc%2Fweb%2Fwiklou.git diff --git a/load.php b/load.php index 6ffc14587e..1dd1a8939c 100644 --- a/load.php +++ b/load.php @@ -23,16 +23,13 @@ */ // Bail if PHP is too low -if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.3.2' ) < 0 ) { - require( dirname( __FILE__ ) . '/includes/PHPVersionError.php' ); +if ( !function_exists( 'version_compare' ) || version_compare( PHP_VERSION, '5.3.2' ) < 0 ) { + // We need to use dirname( __FILE__ ) here cause __DIR__ is PHP5.3+ + require dirname( __FILE__ ) . '/includes/PHPVersionError.php'; wfPHPVersionError( 'load.php' ); } -if ( isset( $_SERVER['MW_COMPILED'] ) ) { - require ( 'phase3/includes/WebStart.php' ); -} else { - require ( __DIR__ . '/includes/WebStart.php' ); -} +require __DIR__ . '/includes/WebStart.php'; wfProfileIn( 'load.php' );