diff options
author | szaimen <szaimen@e.mail.de> | 2021-06-22 13:43:12 +0200 |
---|---|---|
committer | szaimen <szaimen@e.mail.de> | 2021-06-22 13:43:12 +0200 |
commit | 858f578f84918e35cc883f429fff126a9f13cfbe (patch) | |
tree | 02cbf28dceee5a7b4398c22413f54d00a0d41875 /lib/private/Mail | |
parent | 6d129e5f79a2bf03a08609c67a8dec127c044617 (diff) | |
download | nextcloud-server-858f578f84918e35cc883f429fff126a9f13cfbe.tar.gz nextcloud-server-858f578f84918e35cc883f429fff126a9f13cfbe.zip |
mail-template - don't show hyphen if slogan is empty
Signed-off-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'lib/private/Mail')
-rw-r--r-- | lib/private/Mail/EMailTemplate.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Mail/EMailTemplate.php b/lib/private/Mail/EMailTemplate.php index b04fa903ba8..efe1a6eef1d 100644 --- a/lib/private/Mail/EMailTemplate.php +++ b/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) { |