X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=api.php;h=e8a911e3a10784a83e7e3c18781b8f4b56e93e0a;hb=74fbc9df6f4c6973ecc0df3256b9de0f3cbd4c8b;hp=e55ec75a33523e8fde0a1c19b5a07d6f1408b63a;hpb=d0afaa88434ebcb442c6dda5c46080bbc8e86a53;p=lhc%2Fweb%2Fwiklou.git diff --git a/api.php b/api.php index e55ec75a33..e8a911e3a1 100644 --- a/api.php +++ b/api.php @@ -34,7 +34,7 @@ define( 'MW_API', true ); // 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'; wfPHPVersionError( 'api.php' );