}
# Do a batch existence check
- $batch = new LinkBatch;
- foreach ( $templates as $title ) {
- $batch->addObj( $title );
- }
- $batch->execute();
+ ( new LinkBatch( $templates ) )->execute();
# Construct the HTML
$outText = '<div class="mw-templatesUsedExplanation">';
}
if ( $more instanceof LinkTarget ) {
- $outText .= Html::rawElement( 'li', $this->linkRenderer->makeLink(
+ $outText .= Html::rawElement( 'li', [], $this->linkRenderer->makeLink(
$more, $this->context->msg( 'moredotdotdot' )->text() ) );
} elseif ( $more ) {
// Documented as should already be escaped
- $outText .= Html::rawElement( 'li', $more );
+ $outText .= Html::rawElement( 'li', [], $more );
}
$outText .= '</ul>';