summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-04-12 15:33:35 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2017-04-12 17:16:27 +0200
commit983210de2e2798a70d8dcdce898c6f4f2d01c9fa (patch)
tree78f045d9c35d31714fde3e5f491919bd33cef317 /apps/sharebymail
parent4b639e276322b6294b8ac62d88de0985c0ab637a (diff)
downloadnextcloud-server-983210de2e2798a70d8dcdce898c6f4f2d01c9fa.tar.gz
nextcloud-server-983210de2e2798a70d8dcdce898c6f4f2d01c9fa.zip
Dont add click-button text for plaintext mails
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/sharebymail')
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php7
1 files 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]),