@@ 720-726 (lines=7) @@ | ||
717 | $result['fileSource'] = ($backend instanceof \OCP\Share_Backend_File_Dependent) ? $itemSource : null; |
|
718 | } |
|
719 | } |
|
720 | } else { |
|
721 | $message = 'Sharing %s failed, because resharing is not allowed'; |
|
722 | $message_t = $l->t('Sharing %s failed, because resharing is not allowed', array($itemSourceName)); |
|
723 | ||
724 | self::log('NextNote\Fixtures\ShareFix', sprintf($message, $itemSourceName), \OCP\Util::DEBUG); |
|
725 | throw new \Exception($message_t); |
|
726 | } |
|
727 | } else { |
|
728 | $result['parent'] = null; |
|
729 | $result['suggestedItemTarget'] = null; |
|
@@ 837-842 (lines=6) @@ | ||
834 | } |
|
835 | } |
|
836 | ||
837 | if ($date < $today) { |
|
838 | $message = 'Cannot set expiration date. Expiration date is in the past'; |
|
839 | $message_t = $l->t('Cannot set expiration date. Expiration date is in the past'); |
|
840 | self::log('NextNote\Fixtures\ShareFix', $message, \OCP\Util::WARN); |
|
841 | throw new \Exception($message_t); |
|
842 | } |
|
843 | ||
844 | return $date; |
|
845 | } |