Skip to content

Commit eb760ab

Browse files
authored
Update DefaultShareProvider.php
fixed default share mail body text
1 parent 9422233 commit eb760ab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/private/Share20/DefaultShareProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1466,16 +1466,20 @@ protected function sendUserShareMail(
14661466
'initiator' => $initiatorDisplayName,
14671467
'expiration' => $expiration,
14681468
'shareWith' => $shareWith,
1469+
'note' => $note
14691470
]);
14701471

14711472
$emailTemplate->setSubject($l->t('%1$s shared %2$s with you', [$initiatorDisplayName, $filename]));
14721473
$emailTemplate->addHeader();
14731474
$emailTemplate->addHeading($l->t('%1$s shared %2$s with you', [$initiatorDisplayName, $filename]), false);
1474-
1475+
$text = '';
1476+
14751477
if ($note !== '') {
14761478
$emailTemplate->addBodyText(htmlspecialchars($note), $note);
14771479
}
14781480

1481+
$emailTemplate->addBodyText(htmlspecialchars($text), $text);
1482+
14791483
$emailTemplate->addBodyButton(
14801484
$l->t('Open %s', [$filename]),
14811485
$link

0 commit comments

Comments
 (0)