lib/private/Share20/DefaultShareProvider.php 1 location
|
@@ 853-856 (lines=4) @@
|
| 850 |
|
$share->setNodeId((int)$data['file_source']); |
| 851 |
|
$share->setNodeType($data['item_type']); |
| 852 |
|
|
| 853 |
|
if ($data['expiration'] !== null) { |
| 854 |
|
$expiration = \DateTime::createFromFormat('Y-m-d H:i:s', $data['expiration']); |
| 855 |
|
$share->setExpirationDate($expiration); |
| 856 |
|
} |
| 857 |
|
|
| 858 |
|
if (isset($data['f_permissions'])) { |
| 859 |
|
$entryData = $data; |
apps/sharebymail/lib/ShareByMailProvider.php 1 location
|
@@ 887-892 (lines=6) @@
|
| 884 |
|
$share->setShareOwner($owner->getUID()); |
| 885 |
|
} |
| 886 |
|
|
| 887 |
|
if ($data['expiration'] !== null) { |
| 888 |
|
$expiration = \DateTime::createFromFormat('Y-m-d H:i:s', $data['expiration']); |
| 889 |
|
if ($expiration !== false) { |
| 890 |
|
$share->setExpirationDate($expiration); |
| 891 |
|
} |
| 892 |
|
} |
| 893 |
|
|
| 894 |
|
$share->setNodeId((int)$data['file_source']); |
| 895 |
|
$share->setNodeType($data['item_type']); |