Fix issue in notification template when there is no comment author
This commit is contained in:
parent
9b78126289
commit
1465ca1ae1
|
|
@ -1,6 +1,10 @@
|
|||
<h2><?= $this->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<h3><?= t('New comment posted by %s', $comment['name'] ?: $comment['username']) ?></h3>
|
||||
<?php if (! empty($comment['username'])): ?>
|
||||
<h3><?= t('New comment posted by %s', $comment['name'] ?: $comment['username']) ?></h3>
|
||||
<?php else: ?>
|
||||
<h3><?= t('New comment') ?></h3>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $this->text->markdown($comment['comment']) ?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue