Skip to content

Commit e24237b

Browse files
HamishSlaterJeroenDeDauw
authored andcommitted
Fix template expansion to allow spaces in template names
1 parent 192c3eb commit e24237b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formats/datatables/DataTables.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ public function getCellContent(
971971
if ( $template ) {
972972
// @fixme use named parameter ?
973973
$titleTemplate = Title::makeTitle( NS_TEMPLATE,
974-
Title::capitalize( $template, NS_TEMPLATE ) );
974+
Title::capitalize( trim( $template ), NS_TEMPLATE ) );
975975
$value_ = $this->expandTemplate( $titleTemplate, [ 1 => $value ] );
976976
$value = Parser::stripOuterParagraph(
977977
$this->parser->recursiveTagParseFully( $value_ )

0 commit comments

Comments
 (0)