diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-19 17:08:52 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-20 16:33:27 +0200 |
commit | aa54d31bd2161f74ccccd375fab46bdf63c5207e (patch) | |
tree | 62b69095f7b77fa5a21fff7863876d2fdd4dd4fa /apps/sharebymail/lib | |
parent | 972b4c04e2ea3bf96533c111853a57177231c638 (diff) | |
download | nextcloud-server-aa54d31bd2161f74ccccd375fab46bdf63c5207e.tar.gz nextcloud-server-aa54d31bd2161f74ccccd375fab46bdf63c5207e.zip |
fix unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/sharebymail/lib')
-rw-r--r-- | apps/sharebymail/lib/ShareByMailProvider.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index f31a774b1d1..459b1ffe7c1 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -381,7 +381,6 @@ class ShareByMailProvider implements IShareProvider { $initiatorUser = $this->userManager->get($initiator); $ownerDisplayName = ($ownerUser instanceof IUser) ? $ownerUser->getDisplayName() : $owner; $initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator; - $initiatorEmailAddress = ($initiatorUser instanceof IUser) ? $initiatorUser->getEMailAddress() : null; if ($owner === $initiator) { $subject = (string)$this->l->t('%s shared »%s« with you', array($ownerDisplayName, $filename)); } else { @@ -408,11 +407,6 @@ class ShareByMailProvider implements IShareProvider { $link ); - $emailTemplate->addFooter(); - if ($initiatorEmailAddress !== null) { - $message->setFrom([$initiatorEmailAddress => $initiatorDisplayName]); - } - $message->setTo([$shareWith]); // The "From" contains the sharers name |