* (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.
authorSam Reed <reedy@users.mediawiki.org>
Fri, 10 Feb 2012 14:27:50 +0000 (14:27 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 10 Feb 2012 14:27:50 +0000 (14:27 +0000)
RELEASE-NOTES-1.20
includes/api/ApiQuerySiteinfo.php

index 37f0068..9150fad 100644 (file)
@@ -24,6 +24,7 @@ production.
   compressed the output twice resulting in garbage output (since 1.18)
 
 === API changes in 1.20 ===
+* (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.
 
 === Languages updated in 1.20 ===
 
index e2580ac..e95de21 100644 (file)
@@ -177,6 +177,8 @@ class ApiQuerySiteinfo extends ApiQueryBase {
                        $data['misermode'] = '';
                }
 
+               $data['maxuploadsize'] = UploadBase::getMaxUploadSize();
+
                wfRunHooks( 'APIQuerySiteInfoGeneralInfo', array( $this, &$data ) );
 
                return $this->getResult()->addValue( 'query', $property, $data );