diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-10-22 23:13:28 +0200 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-10-23 09:24:03 +0200 |
commit | 9071e756a103319c6747974292463f30b89ab4e3 (patch) | |
tree | b9739ecd154f92b9ce863a4688c9d40241c649ce /lib/public | |
parent | 4f5ff9c105360335d525ac2bf887bdd7ba4fe03a (diff) | |
download | nextcloud-server-9071e756a103319c6747974292463f30b89ab4e3.tar.gz nextcloud-server-9071e756a103319c6747974292463f30b89ab4e3.zip |
Fix for broken ajax/share.php endpoint
Even more code mess :(
All tests pass again. But I'm really not happy with this endpoint.
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/share.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index 0f5c68c576d..4fcc7d81d16 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -255,13 +255,14 @@ class Share extends \OC\Share\Constants { * @param int $permissions CRUDS * @param string $itemSourceName * @param \DateTime $expirationDate + * @param bool $passwordChanged * @return bool|string Returns true on success or false on failure, Returns token on success for links * @throws \OC\HintException when the share type is remote and the shareWith is invalid * @throws \Exception - * @since 5.0.0 - parameter $itemSourceName was added in 6.0.0, parameter $expirationDate was added in 7.0.0 + * @since 5.0.0 - parameter $itemSourceName was added in 6.0.0, parameter $expirationDate was added in 7.0.0, paramter $passwordChanged added in 9.0.0 */ - public static function shareItem($itemType, $itemSource, $shareType, $shareWith, $permissions, $itemSourceName = null, \DateTime $expirationDate = null) { - return \OC\Share\Share::shareItem($itemType, $itemSource, $shareType, $shareWith, $permissions, $itemSourceName, $expirationDate); + public static function shareItem($itemType, $itemSource, $shareType, $shareWith, $permissions, $itemSourceName = null, \DateTime $expirationDate = null, $passwordChanged = null) { + return \OC\Share\Share::shareItem($itemType, $itemSource, $shareType, $shareWith, $permissions, $itemSourceName, $expirationDate, $passwordChanged); } /** |