diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-12-08 09:55:49 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-12-08 09:55:49 +0100 |
commit | 4ac9fa081a7c045f6a9f1cfc529d82423f485b2e (patch) | |
tree | af68743f2f4a47d13f2b0eb05f5c4aaf86d8ea37 /includes/site/MediaWikiSite.php | |
parent | af4da56f1ad4d3ef7b06557bae365da2ea27a897 (diff) |
Update to MediaWiki 1.22.0
Diffstat (limited to 'includes/site/MediaWikiSite.php')
-rw-r--r-- | includes/site/MediaWikiSite.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/site/MediaWikiSite.php b/includes/site/MediaWikiSite.php index 05092723..f3b8a0c7 100644 --- a/includes/site/MediaWikiSite.php +++ b/includes/site/MediaWikiSite.php @@ -123,17 +123,17 @@ class MediaWikiSite extends Site { 'converttitles' => true, 'format' => 'json', 'titles' => $pageName, - //@todo: options for maxlag and maxage + // @todo options for maxlag and maxage // Note that maxlag will lead to a long delay before a reply is made, // but that maxage can avoid the extreme delay. On the other hand // maxage could be nice to use anyhow as it stops unnecessary requests. // Also consider smaxage if maxage is used. ); - $url = $this->getFileUrl( 'api.php' ) . '?' . wfArrayToCgi( $args ); + $url = wfAppendQuery( $this->getFileUrl( 'api.php' ), $args ); // Go on call the external site - //@todo: we need a good way to specify a timeout here. + // @todo we need a good way to specify a timeout here. $ret = Http::get( $url ); } @@ -185,7 +185,7 @@ class MediaWikiSite extends Site { // the single page in the "pages" substructure. if ( isset( $externalData['query']['pages'] ) ) { $pages = array_values( $externalData['query']['pages'] ); - if ( count( $pages) === 1 ) { + if ( count( $pages ) === 1 ) { return $pages[0]; } } |