From b9b1e863d9eddf15fd8c7f7b7f61ecb781bb6823 Mon Sep 17 00:00:00 2001 From: Ian Marlier Date: Wed, 22 Nov 2017 12:02:26 -0500 Subject: [PATCH] API:Siteinfo: Include wgCategoryCollation in Siteinfo response Include the value of $wgCategoryCollation in the siteinfo general array. This will allow AWB to get this information without needing to scrape the NOC InitialiseSettings.php.txt file. Bug: T179795 Change-Id: I76f85c71d2fe0d7a0482fb5eda0458708057e48d --- includes/api/ApiQuerySiteinfo.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index 6b896c95ad..2e9e69c9a5 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -283,6 +283,8 @@ class ApiQuerySiteinfo extends ApiQueryBase { $data['interwikimagic'] = (bool)$config->get( 'InterwikiMagic' ); $data['magiclinks'] = $config->get( 'EnableMagicLinks' ); + $data['categorycollation'] = $config->get( 'CategoryCollation' ); + Hooks::run( 'APIQuerySiteInfoGeneralInfo', [ $this, &$data ] ); return $this->getResult()->addValue( 'query', $property, $data ); -- 2.20.1