X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=load.php;h=1dd1a8939ccaf03175937a1978d9a81bb821d1b3;hb=a8d4bfaa838b7ba84d630bff42fa1fb32a8ac3fb;hp=f363c3fa518f0f8b64463236e2521a339f5321bd;hpb=a1a296ac845aa37bfb34f0ca0085de67f9b2e8c4;p=lhc%2Fweb%2Fwiklou.git diff --git a/load.php b/load.php index f363c3fa51..1dd1a8939c 100644 --- a/load.php +++ b/load.php @@ -23,17 +23,13 @@ */ // Bail if PHP is too low -if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.3.2' ) < 0 ) { +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' ); + 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' );