Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion formats/datatables/DataTables.php
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@
if ( $template ) {
// @fixme use named parameter ?
$titleTemplate = Title::makeTitle( NS_TEMPLATE,
Title::capitalize( $template, NS_TEMPLATE ) );
Title::capitalize( trim( $template ), NS_TEMPLATE ) );

Check warning on line 974 in formats/datatables/DataTables.php

View check run for this annotation

Codecov / codecov/patch

formats/datatables/DataTables.php#L974

Added line #L974 was not covered by tests
$value_ = $this->expandTemplate( $titleTemplate, [ 1 => $value ] );
$value = Parser::stripOuterParagraph(
$this->parser->recursiveTagParseFully( $value_ )
Expand Down