X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=api.php;h=9d7f6480ed31ba929416abc76c4559344256f8ce;hb=619a3f3b85fb7fc6d900288129e33a611f614621;hp=bc9022979e207dc36c966fd1f6ef9e95ebe6ba31;hpb=56024249528ac68c8361b008ebee44d9357bbe86;p=lhc%2Fweb%2Fwiklou.git diff --git a/api.php b/api.php index bc9022979e..9d7f6480ed 100644 --- a/api.php +++ b/api.php @@ -41,11 +41,7 @@ if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5. } // Initialise common code. -if ( isset( $_SERVER['MW_COMPILED'] ) ) { - require ( 'core/includes/WebStart.php' ); -} else { - require ( __DIR__ . '/includes/WebStart.php' ); -} +require ( __DIR__ . '/includes/WebStart.php' ); wfProfileIn( 'api.php' ); $starttime = microtime( true ); @@ -58,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 ); }