X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=api.php;h=8fab878cfaa0a9f9658dee34cc9181268e44f5b8;hb=868a7006a23aa2847a857602e4e73f67a7819453;hp=b9efe2c252f3016de7c0349399e6f181f55b5ec5;hpb=ee85aac6ffb80b290f6d7794bf1d9d76f40e5de5;p=lhc%2Fweb%2Fwiklou.git diff --git a/api.php b/api.php index b9efe2c252..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 ); @@ -54,8 +54,8 @@ if ( !$wgRequest->checkUrlExtension() ) { // Verify that the API has not been disabled if ( !$wgEnableAPI ) { header( $_SERVER['SERVER_PROTOCOL'] . ' 500 MediaWiki configuration Error', true, 500 ); - echo( 'MediaWiki API is not enabled for this site. Add the following line to your LocalSettings.php' - . '
$wgEnableAPI=true;
' ); + echo 'MediaWiki API is not enabled for this site. Add the following line to your LocalSettings.php' + . '
$wgEnableAPI=true;
'; die( 1 ); }