Restore namespace-number keys in APIQuerySiteinfo siprop=namespaces
authorThis, that and the other <at.light@live.com.au>
Sat, 20 Jun 2015 12:24:31 +0000 (22:24 +1000)
committerThis, that and the other <at.light@live.com.au>
Sat, 20 Jun 2015 12:24:31 +0000 (22:24 +1000)
Per discussion at the task.

Bug: T102645
Change-Id: Ic40f7fa3f5612b3d994cc01bcd0929545576041d

includes/api/ApiQuerySiteinfo.php

index a112cf0..1ce5761 100644 (file)
@@ -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 );