X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=api.php;h=bc9022979e207dc36c966fd1f6ef9e95ebe6ba31;hb=3a26db55ab4ba908b76cd9982794d1eeafb4afa0;hp=94266d88fbf945fc0259d2db475c9f3f044787cb;hpb=63a828ee0e0b2c1ce22ac358d7a4860ffd850ebf;p=lhc%2Fweb%2Fwiklou.git diff --git a/api.php b/api.php index 94266d88fb..bc9022979e 100644 --- a/api.php +++ b/api.php @@ -8,7 +8,7 @@ * as an argument in the URL ('?action=') and with write-enabled set to the * value of $wgEnableWriteAPI as specified in LocalSettings.php. * It then invokes "execute()" on the ApiMain object instance, which - * produces output in the format sepecified in the URL. + * produces output in the format specified in the URL. * * Copyright © 2006 Yuri Astrakhan @gmail.com * @@ -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(); @@ -107,4 +107,3 @@ if ( $wgAPIRequestLog ) { // get here to worry about whether this should be = or =&, but the file has to parse properly. $lb = wfGetLBFactory(); $lb->shutdown(); -