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

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2021-06-22 13:43:12 +02:00
parent 6d129e5f79
commit 858f578f84

View file

@ -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) {