dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d78882
)
ApiQuerySiteInfo: Add $wgInterwikiMagic value
author
Kunal Mehta
<legoktm@member.fsf.org>
Wed, 8 Jun 2016 18:21:04 +0000
(11:21 -0700)
committer
Kunal 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
patch
|
blob
|
history
diff --git
a/includes/api/ApiQuerySiteinfo.php
b/includes/api/ApiQuerySiteinfo.php
index
0774651
..
cc755b1
100644
(file)
--- a/
includes/api/ApiQuerySiteinfo.php
+++ b/
includes/api/ApiQuerySiteinfo.php
@@
-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 );