do not show hyphen after instance name in emails if slogan does not exist
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
199c4b2ff9
commit
86265320b8
2 changed files with 2 additions and 2 deletions
|
@ -423,7 +423,7 @@ class ShareByMailProvider implements IShareProvider {
|
|||
$initiatorEmail = $initiatorUser->getEMailAddress();
|
||||
if($initiatorEmail !== null) {
|
||||
$message->setReplyTo([$initiatorEmail => $initiatorDisplayName]);
|
||||
$emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan());
|
||||
$emailTemplate->addFooter($instanceName . ($this->defaults->getSlogan() !== '' ? ' - ' . $this->defaults->getSlogan() : ''));
|
||||
} else {
|
||||
$emailTemplate->addFooter();
|
||||
}
|
||||
|
|
|
@ -745,7 +745,7 @@ class Manager implements IManager {
|
|||
$initiatorEmail = $initiatorUser->getEMailAddress();
|
||||
if($initiatorEmail !== null) {
|
||||
$message->setReplyTo([$initiatorEmail => $initiatorDisplayName]);
|
||||
$emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan());
|
||||
$emailTemplate->addFooter($instanceName . ($this->defaults->getSlogan() !== '' ? ' - ' . $this->defaults->getSlogan() : ''));
|
||||
} else {
|
||||
$emailTemplate->addFooter();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue