From 1fc831c2d86956c027724ce7f3812ea4590da5b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 24 Oct 2013 00:16:02 +0200 Subject: [PATCH] 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 --- includes/api/ApiQuerySiteinfo.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; } -- 2.20.1