From 6a12da02bf08dca0852f5c6b73ea0aa9ab989255 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 27 Mar 2016 17:14:22 +0200 Subject: [PATCH] Fix moderated comment for guest comments MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … and for comments of deleted users --- com.woltlab.wcf/templates/moderationComment.tpl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/com.woltlab.wcf/templates/moderationComment.tpl b/com.woltlab.wcf/templates/moderationComment.tpl index becf299de2..333d4c4a91 100644 --- a/com.woltlab.wcf/templates/moderationComment.tpl +++ b/com.woltlab.wcf/templates/moderationComment.tpl @@ -4,12 +4,22 @@
- {@$message->getUserProfile()->getAvatar()->getImageTag(32)} + {if $message->userID} + {@$message->getUserProfile()->getAvatar()->getImageTag(32)} + {else} + {@$message->getUserProfile()->getAvatar()->getImageTag(32)} + {/if}

{$message->getTitle()}

- {$message->getUsername()} + + {if $message->userID} + {$message->getUsername()} + {else} + {$message->getUsername()} + {/if} + {@$message->getTime()|time}

-- 2.20.1