jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/348128 )

Change subject: Retrieve categories using the API format version 2
......................................................................


Retrieve categories using the API format version 2

Make sure the returned pages are an array and not an object. This
allows us to iterate over pages using ‘forEach‘.

Bug: T162922
Change-Id: Ice2c094aa14c55797bd3b25e124a16d8e7102837
---
M resources/mobile.categories.overlays/CategoryGateway.js
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  jenkins-bot: Verified
  Jdlrobson: Looks good to me, approved



diff --git a/resources/mobile.categories.overlays/CategoryGateway.js 
b/resources/mobile.categories.overlays/CategoryGateway.js
index 3eef9c1..61f640f 100644
--- a/resources/mobile.categories.overlays/CategoryGateway.js
+++ b/resources/mobile.categories.overlays/CategoryGateway.js
@@ -50,7 +50,8 @@
                                prop: 'categories',
                                titles: title,
                                clprop: 'hidden',
-                               cllimit: 50
+                               cllimit: 50,
+                               formatversion: 2
                        }, this.continueParams ) ).then( function ( data ) {
                                if ( data.hasOwnProperty( 'continue' ) ) {
                                        self.continueParams = data.continue;

-- 
To view, visit https://gerrit.wikimedia.org/r/348128
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ice2c094aa14c55797bd3b25e124a16d8e7102837
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Bmansurov <[email protected]>
Gerrit-Reviewer: Bmansurov <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to