From ecdd04374a4cabdf682e427b59619ef2e42d2997 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Sat, 26 Jul 2014 02:00:49 +0200 Subject: Allow specifying the item source in unshareFromSelf(). --- lib/public/share.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/public/share.php') diff --git a/lib/public/share.php b/lib/public/share.php index 8566a38c61e..3a08fd59b72 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -265,8 +265,8 @@ class Share extends \OC\Share\Constants { * * Unsharing from self is not allowed for items inside collections */ - public static function unshareFromSelf($itemType, $itemTarget) { - return \OC\Share\Share::unshareFromSelf($itemType, $itemTarget); + public static function unshareFromSelf($itemType, $itemOrigin, $originIsSource = false) { + return \OC\Share\Share::unshareFromSelf($itemType, $itemOrigin, $originIsSource); } /** -- cgit v1.2.3