X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiMain.php;h=7e3dcff2ee54ce5dda7eb168ced8bada0962f3d9;hb=c4ba6f9ecf5f76a62e3d5f188f97c98e5e788bc2;hp=465025c93e9c5cbf6d9a6bfe061037afcdeb9847;hpb=941b7a5c6071bb44fc6df379900c0c6ddf0541e6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 465025c93e..7e3dcff2ee 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -1305,6 +1305,7 @@ class ApiMain extends ApiBase { } $help[$k] = $v; } + $help['datatypes'] = ''; $help['credits'] = ''; // Fill 'permissions' @@ -1337,10 +1338,18 @@ class ApiMain extends ApiBase { $help['permissions'] .= Html::closeElement( 'dl' ); $help['permissions'] .= Html::closeElement( 'div' ); - // Fill 'credits', if applicable + // Fill 'datatypes' and 'credits', if applicable if ( empty( $options['nolead'] ) ) { - $help['credits'] .= Html::element( 'h' . min( 6, $options['headerlevel'] + 1 ), - array( 'id' => '+credits', 'class' => 'apihelp-header' ), + $help['datatypes'] .= Html::rawelement( 'h' . min( 6, $options['headerlevel'] + 1 ), + array( 'id' => 'main/datatypes', 'class' => 'apihelp-header' ), + Html::element( 'span', array( 'id' => Sanitizer::escapeId( 'main/datatypes' ) ) ) . + $this->msg( 'api-help-datatypes-header' )->parse() + ); + $help['datatypes'] .= $this->msg( 'api-help-datatypes' )->parseAsBlock(); + + $help['credits'] .= Html::rawelement( 'h' . min( 6, $options['headerlevel'] + 1 ), + array( 'id' => 'main/credits', 'class' => 'apihelp-header' ), + Html::element( 'span', array( 'id' => Sanitizer::escapeId( 'main/credits' ) ) ) . $this->msg( 'api-credits-header' )->parse() ); $help['credits'] .= $this->msg( 'api-credits' )->useDatabase( false )->parseAsBlock();