From: Reedy Date: Fri, 24 Jan 2014 06:38:30 +0000 (+0000) Subject: API: Remove obsolete wgRightsCode from siteinfo X-Git-Tag: 1.31.0-rc.0~17169^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=ba25a53c4f2def6b1d7fcf37196a26c62bb8c34e;p=lhc%2Fweb%2Fwiklou.git API: Remove obsolete wgRightsCode from siteinfo This was apparently a companion to $wgRightsPage, $wgRightsUrl, $wgRightsText, and $wgRightsIcon, added in r3148. But even then it was commented out as "not yet used", and appears to have eventually disappeared without ever having been used. Change-Id: I63f4393c22912f04e4ea690ebb1cd02bae65faab --- diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index dc76a2d2ff..a81a520d69 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -183,10 +183,6 @@ class ApiQuerySiteinfo extends ApiQueryBase { // 'case-insensitive' option is reserved for future $data['case'] = $GLOBALS['wgCapitalLinks'] ? 'first-letter' : 'case-sensitive'; - if ( isset( $GLOBALS['wgRightsCode'] ) ) { - $data['rightscode'] = $GLOBALS['wgRightsCode']; - } - $data['rights'] = $GLOBALS['wgRightsText']; $data['lang'] = $GLOBALS['wgLanguageCode']; $fallbacks = array();