From: Bartosz DziewoƄski Date: Wed, 23 Oct 2013 22:16:02 +0000 (+0200) Subject: Expose iw_trans in siteinfo API interwikimap prop X-Git-Tag: 1.31.0-rc.0~18214^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=1fc831c2d86956c027724ce7f3812ea4590da5b9;p=lhc%2Fweb%2Fwiklou.git Expose iw_trans in siteinfo API interwikimap prop It is already exposed by the Interwiki extension, deployed on all Wikimedia wikis. I don't see why we would not expose it here. Change-Id: I61712bac7a2ab5672a79de866617af2915b9e41b --- diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index a7767062e8..464693abeb 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -357,7 +357,9 @@ class ApiQuerySiteinfo extends ApiQueryBase { if ( $row['iw_local'] == '1' ) { $val['local'] = ''; } - // $val['trans'] = intval( $row['iw_trans'] ); // should this be exposed? + if ( $row['iw_trans'] == '1' ) { + $val['trans'] = ''; + } if ( isset( $langNames[$prefix] ) ) { $val['language'] = $langNames[$prefix]; }