Allow the expiration date to be set to null
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
8e4085526d
commit
be23f7e1de
|
@ -377,7 +377,7 @@ class ShareByMailProvider implements IShareProvider {
|
||||||
$link,
|
$link,
|
||||||
$initiator,
|
$initiator,
|
||||||
$shareWith,
|
$shareWith,
|
||||||
$expiration) {
|
\DateTime $expiration = null) {
|
||||||
$initiatorUser = $this->userManager->get($initiator);
|
$initiatorUser = $this->userManager->get($initiator);
|
||||||
$initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator;
|
$initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator;
|
||||||
$subject = (string)$this->l->t('%s shared »%s« with you', array($initiatorDisplayName, $filename));
|
$subject = (string)$this->l->t('%s shared »%s« with you', array($initiatorDisplayName, $filename));
|
||||||
|
|
|
@ -682,14 +682,14 @@ class Manager implements IManager {
|
||||||
* @param string $link link to the file/folder
|
* @param string $link link to the file/folder
|
||||||
* @param string $initiator user ID of share sender
|
* @param string $initiator user ID of share sender
|
||||||
* @param string $shareWith email address of share receiver
|
* @param string $shareWith email address of share receiver
|
||||||
* @param \DateTime $expiration
|
* @param \DateTime|null $expiration
|
||||||
* @throws \Exception If mail couldn't be sent
|
* @throws \Exception If mail couldn't be sent
|
||||||
*/
|
*/
|
||||||
protected function sendMailNotification($filename,
|
protected function sendMailNotification($filename,
|
||||||
$link,
|
$link,
|
||||||
$initiator,
|
$initiator,
|
||||||
$shareWith,
|
$shareWith,
|
||||||
\DateTime $expiration) {
|
\DateTime $expiration = null) {
|
||||||
$initiatorUser = $this->userManager->get($initiator);
|
$initiatorUser = $this->userManager->get($initiator);
|
||||||
$initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator;
|
$initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator;
|
||||||
$subject = (string)$this->l->t('%s shared »%s« with you', array($initiatorDisplayName, $filename));
|
$subject = (string)$this->l->t('%s shared »%s« with you', array($initiatorDisplayName, $filename));
|
||||||
|
|
Loading…
Reference in New Issue