Currently, an user of the api has to try to save a page to see,
if it's too big, or not. A much saner way would be, that the api user
reads the siteinfo of the target wiki to know the maximum size of a
page and trim the edit to not exceed this limit.
This commit exposes the value of the configuration variable, which
handles the maximum article size.
Bug: T138669
Change-Id: I25a4c1b9013f98e5b0a263a637c8b006dccfd5ad
}
$data['writeapi'] = (bool)$config->get( 'EnableWriteAPI' );
+ $data['maxarticlesize'] = $config->get( 'MaxArticleSize' ) * 1024;
+
$tz = $config->get( 'Localtimezone' );
$offset = $config->get( 'LocalTZoffset' );
if ( is_null( $tz ) ) {