From 3629897c24e84daa43a2134560403ba1a37656de Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 23 Apr 2011 11:12:31 +0000 Subject: [PATCH] * (bug 28672) give information about misermode on api --- RELEASE-NOTES | 1 + includes/api/ApiQuerySiteinfo.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d6887b20c0..1f70092697 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -344,6 +344,7 @@ PHP if you have not done so prior to upgrading MediaWiki. * (bug 28586) YAML: strings that are the same as boolean literals * (bug 28591) Update/replace/supplement spyc (YAML parsing library) * YAML API output is now 1.2 compliant, using JSON as the formatter +* (bug 28672) give information about misermode on api === Languages updated in 1.18 === diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index bfc8e122cc..658f9fd9d2 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -160,6 +160,10 @@ class ApiQuerySiteinfo extends ApiQueryBase { $data['wikiid'] = wfWikiID(); $data['time'] = wfTimestamp( TS_ISO_8601, time() ); + if ( $GLOBALS['wgMiserMode'] ) { + $data['misermode'] = ''; + } + wfRunHooks( 'APIQuerySiteInfoGeneralInfo', array( $this, &$data ) ); return $this->getResult()->addValue( 'query', $property, $data ); -- 2.20.1