API: Remove obsolete wgRightsCode from siteinfo
authorReedy <reedy@wikimedia.org>
Fri, 24 Jan 2014 06:38:30 +0000 (06:38 +0000)
committerAnomie <bjorsch@wikimedia.org>
Fri, 24 Jan 2014 07:05:31 +0000 (07:05 +0000)
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

includes/api/ApiQuerySiteinfo.php

index dc76a2d..a81a520 100644 (file)
@@ -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();