Merge r97789 into trunk
authorSam Reed <reedy@users.mediawiki.org>
Thu, 22 Sep 2011 11:04:30 +0000 (11:04 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 22 Sep 2011 11:04:30 +0000 (11:04 +0000)
Follows up r92528 where this was introduced

includes/api/ApiQuerySiteinfo.php

index 4f22f53..fb84dec 100644 (file)
@@ -297,12 +297,12 @@ class ApiQuerySiteinfo extends ApiQueryBase {
                        if ( isset( $langNames[$prefix] ) ) {
                                $val['language'] = $langNames[$prefix];
                        }
-                       $val['url'] = wfExpandUrl( $row['iw_url'], PROTO_CURRENT );
-                       if( isset( $row['iw_wikiid'] ) ) {
-                               $val['wikiid'] = $row['iw_wikiid'];
+                       $val['url'] = wfExpandUrl( $row->iw_url, PROTO_CURRENT );
+                       if( isset( $row->iw_wikiid ) ) {
+                               $val['wikiid'] = $row->iw_wikiid;
                        }
-                       if( isset( $row['iw_api'] ) ) {
-                               $val['api'] = $row['iw_api'];
+                       if( isset( $row->iw_api ) ) {
+                               $val['api'] = $row->iw_api;
                        }
 
                        $data[] = $val;