瀏覽代碼

mail-template - don't show hyphen if slogan is empty

Signed-off-by: szaimen <szaimen@e.mail.de>
tags/v22.0.0rc1
szaimen 2 年之前
父節點
當前提交
858f578f84
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5
    1
      lib/private/Mail/EMailTemplate.php

+ 5
- 1
lib/private/Mail/EMailTemplate.php 查看文件

@@ -619,7 +619,11 @@ EOF;
public function addFooter(string $text = '', ?string $lang = null) {
if ($text === '') {
$l10n = $this->l10nFactory->get('lib', $lang);
$text = $this->themingDefaults->getName() . ' - ' . $this->themingDefaults->getSlogan($lang) . '<br>' . $l10n->t('This is an automatically sent email, please do not reply.');
$slogan = $this->themingDefaults->getSlogan($lang);
if ($slogan !== '') {
$slogan = ' - ' . $slogan;
}
$text = $this->themingDefaults->getName() . $slogan . '<br>' . $l10n->t('This is an automatically sent email, please do not reply.');
}

if ($this->footerAdded) {

Loading…
取消
儲存