From 020139b47237fe31b985e22f30f8e50600586fc9 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 8 Dec 2021 09:34:55 +0100 Subject: [PATCH] CommentDetail: Properly differentiate comments and acknowledgements fixes #466 --- library/Icingadb/Widget/Detail/CommentDetail.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Icingadb/Widget/Detail/CommentDetail.php b/library/Icingadb/Widget/Detail/CommentDetail.php index 3ca19e62..389285d7 100644 --- a/library/Icingadb/Widget/Detail/CommentDetail.php +++ b/library/Icingadb/Widget/Detail/CommentDetail.php @@ -44,7 +44,9 @@ class CommentDetail extends BaseHtmlElement $details[] = Html::tag( 'p', Html::sprintf( - t('This acknowledgement expires %s.', '..'), + $this->comment->entry_type === 'ack' + ? t('This acknowledgement expires %s.', '..') + : t('This comment expires %s.', '..'), new TimeUntil($this->comment->expire_time) ) );