From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- api.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'api.php') diff --git a/api.php b/api.php index 39d27dd6..a5a25799 100644 --- a/api.php +++ b/api.php @@ -68,11 +68,13 @@ if ( !$wgEnableAPI ) { // Selectively allow cross-site AJAX -/* +/** * Helper function to convert wildcard string into a regex * '*' => '.*?' * '?' => '.' - * @ return string + * + * @param $search string + * @return string */ function convertWildcard( $search ) { $search = preg_quote( $search, '/' ); @@ -115,7 +117,7 @@ $processor = new ApiMain( $wgRequest, $wgEnableWriteAPI ); $processor->execute(); // Execute any deferred updates -wfDoUpdates(); +DeferredUpdates::doUpdates(); // Log what the user did, for book-keeping purposes. $endtime = microtime( true ); @@ -127,7 +129,7 @@ if ( $wgAPIRequestLog ) { $items = array( wfTimestamp( TS_MW ), $endtime - $starttime, - wfGetIP(), + $wgRequest->getIP(), $_SERVER['HTTP_USER_AGENT'] ); $items[] = $wgRequest->wasPosted() ? 'POST' : 'GET'; -- cgit v1.2.2