X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiQuery.php;h=31bcc7a704d170c90dd8edef4b5feb17df68b253;hp=44a46b8d16646b6607e0d36ff495cf2950916735;hb=c75f0e95c9888489961548c72ef24786c43838aa;hpb=25390162c755eb19077310fc04b8f3d19bf1dc23 diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 44a46b8d16..31bcc7a704 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -459,6 +459,7 @@ class ApiQuery extends ApiBase { // Raw formatter will handle this $result->addValue( null, 'text', $sink, ApiResult::NO_SIZE_CHECK ); $result->addValue( null, 'mime', 'text/xml', ApiResult::NO_SIZE_CHECK ); + $result->addValue( null, 'filename', 'export.xml', ApiResult::NO_SIZE_CHECK ); } else { $result->addValue( 'query', 'export', $sink, ApiResult::NO_SIZE_CHECK ); $result->addValue( 'query', ApiResult::META_BC_SUBELEMENTS, [ 'export' ] );