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
|
@@ 696-701 (lines=6) @@
|
| 693 |
|
$share->setShareOwner($owner->getUID()); |
| 694 |
|
} |
| 695 |
|
|
| 696 |
|
if ($data['expiration'] !== null) { |
| 697 |
|
$expiration = \DateTime::createFromFormat('Y-m-d H:i:s', $data['expiration']); |
| 698 |
|
if ($expiration !== false) { |
| 699 |
|
$share->setExpirationDate($expiration); |
| 700 |
|
} |
| 701 |
|
} |
| 702 |
|
|
| 703 |
|
$share->setNodeId((int)$data['file_source']); |
| 704 |
|
$share->setNodeType($data['item_type']); |