summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-16 08:55:06 +0200
committerGitHub <noreply@github.com>2017-08-16 08:55:06 +0200
commit4c558c99f326d4b399cc503c8c1a43e1099ba9d9 (patch)
tree2a86f93aa7b4549cdd95ff7acf3f0e0008a57f2b /apps/files_sharing/lib
parentd7406e515952bfa2c2659ecd44599bb0e5afbeec (diff)
parenta55e794bfdafc3719b0053709dbefd506692fa1b (diff)
downloadnextcloud-server-4c558c99f326d4b399cc503c8c1a43e1099ba9d9.tar.gz
nextcloud-server-4c558c99f326d4b399cc503c8c1a43e1099ba9d9.zip
Merge pull request #6130 from nextcloud/cleanup-unused-methods
Cleanup unused methods
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/Controller/ShareesAPIController.php2
-rw-r--r--apps/files_sharing/lib/ExpireSharesJob.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareesAPIController.php b/apps/files_sharing/lib/Controller/ShareesAPIController.php
index a2ab03bd853..94a4854dbde 100644
--- a/apps/files_sharing/lib/Controller/ShareesAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareesAPIController.php
@@ -506,7 +506,7 @@ class ShareesAPIController extends OCSController {
*/
protected function isRemoteSharingAllowed($itemType) {
try {
- $backend = Share::getBackend($itemType);
+ $backend = \OC\Share\Share::getBackend($itemType);
return $backend->isShareTypeAllowed(Share::SHARE_TYPE_REMOTE);
} catch (\Exception $e) {
return false;
diff --git a/apps/files_sharing/lib/ExpireSharesJob.php b/apps/files_sharing/lib/ExpireSharesJob.php
index 212b7fa008e..e7e10b30c12 100644
--- a/apps/files_sharing/lib/ExpireSharesJob.php
+++ b/apps/files_sharing/lib/ExpireSharesJob.php
@@ -68,7 +68,7 @@ class ExpireSharesJob extends TimedJob {
$shares = $qb->execute();
while($share = $shares->fetch()) {
- \OCP\Share::unshare($share['item_type'], $share['file_source'], \OCP\Share::SHARE_TYPE_LINK, null, $share['uid_owner']);
+ \OC\Share\Share::unshare($share['item_type'], $share['file_source'], \OCP\Share::SHARE_TYPE_LINK, null, $share['uid_owner']);
}
$shares->closeCursor();
}