lib/private/Share20/DefaultShareProvider.php 1 location
|
@@ 855-858 (lines=4) @@
|
| 852 |
|
$share->setNodeId((int)$data['file_source']); |
| 853 |
|
$share->setNodeType($data['item_type']); |
| 854 |
|
|
| 855 |
|
if ($data['expiration'] !== null) { |
| 856 |
|
$expiration = \DateTime::createFromFormat('Y-m-d H:i:s', $data['expiration']); |
| 857 |
|
$share->setExpirationDate($expiration); |
| 858 |
|
} |
| 859 |
|
|
| 860 |
|
if (isset($data['f_permissions'])) { |
| 861 |
|
$entryData = $data; |
apps/sharebymail/lib/ShareByMailProvider.php 1 location
|
@@ 915-920 (lines=6) @@
|
| 912 |
|
$share->setShareOwner($owner->getUID()); |
| 913 |
|
} |
| 914 |
|
|
| 915 |
|
if ($data['expiration'] !== null) { |
| 916 |
|
$expiration = \DateTime::createFromFormat('Y-m-d H:i:s', $data['expiration']); |
| 917 |
|
if ($expiration !== false) { |
| 918 |
|
$share->setExpirationDate($expiration); |
| 919 |
|
} |
| 920 |
|
} |
| 921 |
|
|
| 922 |
|
$share->setNodeId((int)$data['file_source']); |
| 923 |
|
$share->setNodeType($data['item_type']); |