Dont add click-button text for plaintext mails

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-04-12 15:33:35 +02:00 committed by Bjoern Schiessle
parent 4b639e2763
commit 983210de2e
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 4 additions and 3 deletions

View File

@ -272,9 +272,10 @@ class ShareByMailProvider implements IShareProvider {
$text= $this->l->t('%s shared »%s« with you on behalf of %s.', [$ownerDisplayName, $filename, $initiator]);
}
$text .= ' ' . $this->l->t('Click the button below to open it.');
$emailTemplate->addBodyText($text);
$emailTemplate->addBodyText(
$text . ' ' . $this->l->t('Click the button below to open it.'),
$text
);
$emailTemplate->addBodyButton(
$this->l->t('Open »%s«', [$filename]),