X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiHelp.php;h=8d248590783f59fb67caf2c671ed0ba99d713d97;hb=296fe3b9009ec86aed06be88f9f08c400a09d78b;hp=318555a93be7c7a616056fc8c0a96defc3fd5e90;hpb=ed1966c1ed85f7ec713dc252f8c526b8f0e42505;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiHelp.php b/includes/api/ApiHelp.php index 318555a93b..8d24859078 100644 --- a/includes/api/ApiHelp.php +++ b/includes/api/ApiHelp.php @@ -1,9 +1,5 @@ 'text/html', + 'filename' => 'api-help.html', 'help' => $html, ]; ApiResult::setSubelementsList( $data, 'help' ); @@ -70,6 +67,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 ); } } @@ -711,6 +709,15 @@ class ApiHelp extends ApiBase { } } + if ( isset( $settings[self::PARAM_MAX_BYTES] ) ) { + $info[] = $context->msg( 'api-help-param-maxbytes' ) + ->numParams( $settings[self::PARAM_MAX_BYTES] ); + } + if ( isset( $settings[self::PARAM_MAX_CHARS] ) ) { + $info[] = $context->msg( 'api-help-param-maxchars' ) + ->numParams( $settings[self::PARAM_MAX_CHARS] ); + } + // Add default $default = isset( $settings[ApiBase::PARAM_DFLT] ) ? $settings[ApiBase::PARAM_DFLT]