ApiQuerySiteInfo: Add $wgInterwikiMagic value
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 8 Jun 2016 18:21:04 +0000 (11:21 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 8 Jun 2016 22:02:39 +0000 (15:02 -0700)
Bug: T131564
Change-Id: Ia7c1e944c0f65d8b1b940388aceb1f0f89005dc6

includes/api/ApiQuerySiteinfo.php

index 0774651..cc755b1 100644 (file)
@@ -268,6 +268,8 @@ class ApiQuerySiteinfo extends ApiQueryBase {
                $providerIds = array_keys( $this->getConfig()->get( 'CentralIdLookupProviders' ) );
                $data['allcentralidlookupproviders'] = $providerIds;
 
+               $data['interwikimagic'] = (bool)$config->get( 'InterwikiMagic' );
+
                Hooks::run( 'APIQuerySiteInfoGeneralInfo', [ $this, &$data ] );
 
                return $this->getResult()->addValue( 'query', $property, $data );