The siteinfo API uses '' as an attribute value, not `true`.
authorC. Scott Ananian <cscott@cscott.net>
Tue, 17 Jun 2014 14:51:26 +0000 (10:51 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Tue, 17 Jun 2014 14:54:15 +0000 (10:54 -0400)
Bug: 66723
Change-Id: Ibef772a72bac6b700ba2a3725832f50b057bf503

includes/api/ApiQuerySiteinfo.php

index ca7cc21..bb83110 100644 (file)
@@ -401,7 +401,7 @@ class ApiQuerySiteinfo extends ApiQueryBase {
                        }
                        $val['url'] = wfExpandUrl( $row['iw_url'], PROTO_CURRENT );
                        if (substr( $row['iw_url'], 0, 2) == '//') {
-                               $val['protorel'] = true;
+                               $val['protorel'] = '';
                        }
                        if ( isset( $row['iw_wikiid'] ) ) {
                                $val['wikiid'] = $row['iw_wikiid'];