Anomie has uploaded a new change for review.
https://gerrit.wikimedia.org/r/183584
Change subject: Update ApiResult handling for mediawiki/core change I7b37295e
......................................................................
Update ApiResult handling for mediawiki/core change I7b37295e
Change I7b37295e for mediawiki/core deprecates several methods, and more
importantly changes the format of the data returned from
ApiResult::getData(). This change should handle these differences in a
backwards-compatible manner.
Change-Id: I7b37295e8862b188d1f3b0cd07f66ac34629678e
---
M api/ApiQueryGeoSearch.php
1 file changed, 7 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GeoData
refs/changes/84/183584/1
diff --git a/api/ApiQueryGeoSearch.php b/api/ApiQueryGeoSearch.php
index d435647..a945882 100644
--- a/api/ApiQueryGeoSearch.php
+++ b/api/ApiQueryGeoSearch.php
@@ -66,8 +66,13 @@
$this->radius = intval( $params['radius'] );
if ( is_null( $resultPageSet ) ) {
- $this->getResult()->setIndexedTagName_internal(
- array( 'query', $this->getModuleName() ),
$this->getModulePrefix() );
+ if ( defined( 'ApiResult::META_CONTENT' ) ) {
+ $this->getResult()->defineIndexedTagName(
+ array( 'query', $this->getModuleName()
), $this->getModulePrefix() );
+ } else {
+ $this->getResult()->setIndexedTagName_internal(
+ array( 'query', $this->getModuleName()
), $this->getModulePrefix() );
+ }
}
}
--
To view, visit https://gerrit.wikimedia.org/r/183584
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7b37295e8862b188d1f3b0cd07f66ac34629678e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GeoData
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits