diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-11-06 12:05:19 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-11-16 13:32:28 +0100 |
commit | 1e9fc332125aa8e730c3cdccd88102cfcd6bce9d (patch) | |
tree | 7345388bab10435c94c382ddf172cbe1551d4bf7 /apps/files_sharing/api/ocssharewrapper.php | |
parent | 5e3d29b661e5fb8aa40943a6dec621e3343092f3 (diff) | |
download | nextcloud-server-1e9fc332125aa8e730c3cdccd88102cfcd6bce9d.tar.gz nextcloud-server-1e9fc332125aa8e730c3cdccd88102cfcd6bce9d.zip |
[Share2.0] OCS Share API getShare uses new code
Diffstat (limited to 'apps/files_sharing/api/ocssharewrapper.php')
-rw-r--r-- | apps/files_sharing/api/ocssharewrapper.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/files_sharing/api/ocssharewrapper.php b/apps/files_sharing/api/ocssharewrapper.php index 8c0d8f7d150..3ce2901dfb4 100644 --- a/apps/files_sharing/api/ocssharewrapper.php +++ b/apps/files_sharing/api/ocssharewrapper.php @@ -35,15 +35,16 @@ class OCSShareWrapper { \OC::$server->getUserFolder(), new \OC\Share20\DefaultShareProvider( \OC::$server->getDatabaseConnection(), - \OC::$server->getUserManager(), - \OC::$server->getGroupManager(), - \OC::$server->getUserFolder() + \OC::$server->getUserManager(), + \OC::$server->getGroupManager(), + \OC::$server->getUserFolder() ) ), \OC::$server->getGroupManager(), \OC::$server->getUserManager(), \OC::$server->getRequest(), - \OC::$server->getUserFolder()); + \OC::$server->getUserFolder(), + \OC::$server->getURLGenerator()); } public function getAllShares($params) { @@ -55,7 +56,8 @@ class OCSShareWrapper { } public function getShare($params) { - return \OCA\Files_Sharing\API\Local::getShare($params); + $id = $params['id']; + return $this->getShare20OCS()->getShare($id); } public function updateShare($params) { @@ -63,7 +65,7 @@ class OCSShareWrapper { } public function deleteShare($params) { - $id = (int)$params['id']; + $id = $params['id']; return $this->getShare20OCS()->deleteShare($id); } } |