summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/ExpireSharesJob.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-15 14:29:26 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-15 14:29:26 +0200
commita55e794bfdafc3719b0053709dbefd506692fa1b (patch)
tree5cfaf37da18707b4f6e8b9ea0a30575d1848cb74 /apps/files_sharing/lib/ExpireSharesJob.php
parentcf7c4a4439da66055db5b43f9d6bc6e4671aa3e4 (diff)
downloadnextcloud-server-a55e794bfdafc3719b0053709dbefd506692fa1b.tar.gz
nextcloud-server-a55e794bfdafc3719b0053709dbefd506692fa1b.zip
Cleanup unused methods
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_sharing/lib/ExpireSharesJob.php')
-rw-r--r--apps/files_sharing/lib/ExpireSharesJob.php2
1 files changed, 1 insertions, 1 deletions
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();
}