apps/sharebymail/lib/ShareByMailProvider.php 1 location
|
@@ 927-932 (lines=6) @@
|
| 924 |
|
$share->setShareOwner($owner->getUID()); |
| 925 |
|
} |
| 926 |
|
|
| 927 |
|
if ($data['expiration'] !== null) { |
| 928 |
|
$expiration = \DateTime::createFromFormat('Y-m-d H:i:s', $data['expiration']); |
| 929 |
|
if ($expiration !== false) { |
| 930 |
|
$share->setExpirationDate($expiration); |
| 931 |
|
} |
| 932 |
|
} |
| 933 |
|
|
| 934 |
|
$share->setNodeId((int)$data['file_source']); |
| 935 |
|
$share->setNodeType($data['item_type']); |
lib/private/Share20/DefaultShareProvider.php 1 location
|
@@ 899-902 (lines=4) @@
|
| 896 |
|
$share->setNodeId((int)$data['file_source']); |
| 897 |
|
$share->setNodeType($data['item_type']); |
| 898 |
|
|
| 899 |
|
if ($data['expiration'] !== null) { |
| 900 |
|
$expiration = \DateTime::createFromFormat('Y-m-d H:i:s', $data['expiration']); |
| 901 |
|
$share->setExpirationDate($expiration); |
| 902 |
|
} |
| 903 |
|
|
| 904 |
|
if (isset($data['f_permissions'])) { |
| 905 |
|
$entryData = $data; |