From f0d6c2bf9f7dced560c835c9f2d0ae0ce870bc1c Mon Sep 17 00:00:00 2001 From: "This, that and the other" Date: Sat, 20 Jun 2015 22:24:31 +1000 Subject: [PATCH] Restore namespace-number keys in APIQuerySiteinfo siprop=namespaces Per discussion at the task. Bug: T102645 Change-Id: Ic40f7fa3f5612b3d994cc01bcd0929545576041d --- includes/api/ApiQuerySiteinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index a112cf04bb..1ce5761993 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -297,7 +297,7 @@ class ApiQuerySiteinfo extends ApiQueryBase { } } - ApiResult::setArrayType( $data, 'BCarray' ); + ApiResult::setArrayType( $data, 'assoc' ); ApiResult::setIndexedTagName( $data, 'ns' ); return $this->getResult()->addValue( 'query', $property, $data ); -- 2.20.1