X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=api.php;h=8fab878cfaa0a9f9658dee34cc9181268e44f5b8;hb=868a7006a23aa2847a857602e4e73f67a7819453;hp=9d7f6480ed31ba929416abc76c4559344256f8ce;hpb=d5bd4f6e61259fa7c05cbe194f9f4a7cf6278ca4;p=lhc%2Fweb%2Fwiklou.git diff --git a/api.php b/api.php index 9d7f6480ed..8fab878cfa 100644 --- a/api.php +++ b/api.php @@ -36,12 +36,12 @@ define( 'MW_API', true ); // Bail if PHP is too low if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '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( 'api.php' ); } // Initialise common code. -require ( __DIR__ . '/includes/WebStart.php' ); +require __DIR__ . '/includes/WebStart.php'; wfProfileIn( 'api.php' ); $starttime = microtime( true );