Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -177,6 +177,8 @@ |
178 | 178 | $data['misermode'] = ''; |
179 | 179 | } |
180 | 180 | |
| 181 | + $data['maxuploadsize'] = UploadBase::getMaxUploadSize(); |
| 182 | + |
181 | 183 | wfRunHooks( 'APIQuerySiteInfoGeneralInfo', array( $this, &$data ) ); |
182 | 184 | |
183 | 185 | return $this->getResult()->addValue( 'query', $property, $data ); |
Index: trunk/phase3/RELEASE-NOTES-1.20 |
— | — | @@ -24,6 +24,7 @@ |
25 | 25 | compressed the output twice resulting in garbage output (since 1.18) |
26 | 26 | |
27 | 27 | === API changes in 1.20 === |
| 28 | +* (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API. |
28 | 29 | |
29 | 30 | === Languages updated in 1.20 === |
30 | 31 | |