* (bug 28672) give information about misermode on api
authorSam Reed <reedy@users.mediawiki.org>
Sat, 23 Apr 2011 11:12:31 +0000 (11:12 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sat, 23 Apr 2011 11:12:31 +0000 (11:12 +0000)
RELEASE-NOTES
includes/api/ApiQuerySiteinfo.php

index d6887b2..1f70092 100644 (file)
@@ -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 ===
 
index bfc8e12..658f9fd 100644 (file)
@@ -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 );