From 0529f9f5ec37d9578bb7e4be1039519f9ccfcea0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 11 Mar 2022 23:23:03 +0100 Subject: [PATCH] fix username rendering and recursive collection creation --- Theme/Backend/Components/Comment/list.tpl.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Theme/Backend/Components/Comment/list.tpl.php b/Theme/Backend/Components/Comment/list.tpl.php index 8b4d33f..d30fc84 100755 --- a/Theme/Backend/Components/Comment/list.tpl.php +++ b/Theme/Backend/Components/Comment/list.tpl.php @@ -76,9 +76,7 @@ foreach ($comments as $comment) : ?> name; ?> - printHtml( - \sprintf('%3$s %2$s %1$s', $comment->createdBy->name1, $comment->createdBy->name2, $comment->createdBy->name3) - ); ?> + printHtml($this->renderUserName('%3$s %2$s %1$s', [$comment->createdBy->name1, $comment->createdBy->name2, $comment->createdBy->name3, $comment->createdBy->login ?? ''])); ?> createdAt->format('Y-m-d H:i:s'); ?>