X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiHelp.php;h=ea4f724abff6621a552f937dbbea56984c04920e;hp=318555a93be7c7a616056fc8c0a96defc3fd5e90;hb=c75f0e95c9888489961548c72ef24786c43838aa;hpb=2480aae0c97d822e10b50619e7b48b25c45af073 diff --git a/includes/api/ApiHelp.php b/includes/api/ApiHelp.php index 318555a93b..ea4f724abf 100644 --- a/includes/api/ApiHelp.php +++ b/includes/api/ApiHelp.php @@ -62,6 +62,7 @@ class ApiHelp extends ApiBase { if ( $params['wrap'] ) { $data = [ 'mime' => 'text/html', + 'filename' => 'api-help.html', 'help' => $html, ]; ApiResult::setSubelementsList( $data, 'help' ); @@ -70,6 +71,7 @@ class ApiHelp extends ApiBase { $result->reset(); $result->addValue( null, 'text', $html, ApiResult::NO_SIZE_CHECK ); $result->addValue( null, 'mime', 'text/html', ApiResult::NO_SIZE_CHECK ); + $result->addValue( null, 'filename', 'api-help.html', ApiResult::NO_SIZE_CHECK ); } }