From: C. Scott Ananian Date: Mon, 19 May 2014 22:22:32 +0000 (-0700) Subject: Indicate whether interwiki links can use protocol-relative URLs. X-Git-Tag: 1.31.0-rc.0~15650 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=87e0aa344176d9877bffdf77e222439ec0a99f9e;p=lhc%2Fweb%2Fwiklou.git Indicate whether interwiki links can use protocol-relative URLs. Change-Id: I17360e44f0be7490357bc9bc7af27d0a950012de --- diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index ea3a0843dd..0a97d041c6 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -396,6 +396,9 @@ class ApiQuerySiteinfo extends ApiQueryBase { $val['language'] = $langNames[$prefix]; } $val['url'] = wfExpandUrl( $row['iw_url'], PROTO_CURRENT ); + if (substr( $row['iw_url'], 0, 2) == '//') { + $val['protorel'] = true; + } if ( isset( $row['iw_wikiid'] ) ) { $val['wikiid'] = $row['iw_wikiid']; }