From: This, that and the other Date: Sat, 20 Jun 2015 12:24:31 +0000 (+1000) Subject: Restore namespace-number keys in APIQuerySiteinfo siprop=namespaces X-Git-Tag: 1.31.0-rc.0~11015^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=f0d6c2bf9f7dced560c835c9f2d0ae0ce870bc1c;p=lhc%2Fweb%2Fwiklou.git Restore namespace-number keys in APIQuerySiteinfo siprop=namespaces Per discussion at the task. Bug: T102645 Change-Id: Ic40f7fa3f5612b3d994cc01bcd0929545576041d --- 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 );