* (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.
This commit is contained in:
parent
10de43d77c
commit
ff322e3e1e
2 changed files with 3 additions and 0 deletions
|
|
@ -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 ===
|
||||
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue