Skip to content

Commit

Permalink
Update apps/sharebymail/lib/ShareByMailProvider.php
Browse files Browse the repository at this point in the history
Co-Authored-By: Daniel Kesselberg <mail@danielkesselberg.de>
Signed-off-by: Olivier Lechevalier <olivier.lechevalier@gmail.com>
  • Loading branch information
RageZBla and kesselb committed Oct 3, 2019
1 parent ce5bc5b commit fff5511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/sharebymail/lib/ShareByMailProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ protected function sendMailNotification($filename,
$emailTemplate->addHeading($this->l->t('%1$s shared »%2$s« with you', [$initiatorDisplayName, $filename]), false);
$text = $this->l->t('%1$s shared »%2$s« with you.', [$initiatorDisplayName, $filename]);
if ($expiration instanceof \DateTime) {
$relativeDate = (string)$expiration->diff(new \DateTime('now'))->format("%a");
$relativeDate = $expiration->diff(new \DateTime())->format('%a');
$text .= ' ' . $this->l->t('It will expire in %1$s days.', [$relativeDate]);
}

Expand Down

0 comments on commit fff5511

Please sign in to comment.