lib/private/Share20/DefaultShareProvider.php 1 location
|
@@ 854-857 (lines=4) @@
|
| 851 |
|
$share->setNodeId((int)$data['file_source']); |
| 852 |
|
$share->setNodeType($data['item_type']); |
| 853 |
|
|
| 854 |
|
if ($data['expiration'] !== null) { |
| 855 |
|
$expiration = \DateTime::createFromFormat('Y-m-d H:i:s', $data['expiration']); |
| 856 |
|
$share->setExpirationDate($expiration); |
| 857 |
|
} |
| 858 |
|
|
| 859 |
|
if (isset($data['f_permissions'])) { |
| 860 |
|
$entryData = $data; |
apps/sharebymail/lib/ShareByMailProvider.php 1 location
|
@@ 738-743 (lines=6) @@
|
| 735 |
|
$share->setShareOwner($owner->getUID()); |
| 736 |
|
} |
| 737 |
|
|
| 738 |
|
if ($data['expiration'] !== null) { |
| 739 |
|
$expiration = \DateTime::createFromFormat('Y-m-d H:i:s', $data['expiration']); |
| 740 |
|
if ($expiration !== false) { |
| 741 |
|
$share->setExpirationDate($expiration); |
| 742 |
|
} |
| 743 |
|
} |
| 744 |
|
|
| 745 |
|
$share->setNodeId((int)$data['file_source']); |
| 746 |
|
$share->setNodeType($data['item_type']); |