X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=api.php;h=abf601fb48c1124d6f4505949cb77ac9efedf8c2;hb=f74897584c5e592fd0861e3e8d05c4be7ed2d453;hp=4efcdbac1657e1b5a2d6a7edfa69ef5235419e42;hpb=62a6a48bd4cde140a2bebde73f882754dfaa273b;p=lhc%2Fweb%2Fwiklou.git diff --git a/api.php b/api.php index 4efcdbac16..abf601fb48 100644 --- a/api.php +++ b/api.php @@ -60,7 +60,7 @@ 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;
' ); - die(1); + die( 1 ); } // Set a dummy $wgTitle, because $wgTitle == null breaks various things @@ -87,10 +87,10 @@ wfLogProfilingData(); // Log the request if ( $wgAPIRequestLog ) { $items = array( - wfTimestamp( TS_MW ), - $endtime - $starttime, - $wgRequest->getIP(), - $_SERVER['HTTP_USER_AGENT'] + wfTimestamp( TS_MW ), + $endtime - $starttime, + $wgRequest->getIP(), + $_SERVER['HTTP_USER_AGENT'] ); $items[] = $wgRequest->wasPosted() ? 'POST' : 'GET'; $module = $processor->getModule();