mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
mail-template - don't show hyphen if slogan is empty
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
6d129e5f79
commit
858f578f84
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Reference in a new issue