From 983210de2e2798a70d8dcdce898c6f4f2d01c9fa Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 12 Apr 2017 15:33:35 +0200 Subject: [PATCH] Dont add click-button text for plaintext mails Signed-off-by: Joas Schilling --- apps/sharebymail/lib/ShareByMailProvider.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index f2c68f9376d..0b959ce4265 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -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]),