From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- api.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'api.php') diff --git a/api.php b/api.php index 7fae3731..bc902297 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,17 +87,17 @@ 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(); if ( $module->mustBePosted() ) { $items[] = "action=" . $wgRequest->getVal( 'action' ); } else { - $items[] = wfArrayToCGI( $wgRequest->getValues() ); + $items[] = wfArrayToCgi( $wgRequest->getValues() ); } wfErrorLog( implode( ',', $items ) . "\n", $wgAPIRequestLog ); wfDebug( "Logged API request to $wgAPIRequestLog\n" ); @@ -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(); - -- cgit v1.2.2