summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/View.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files/View.php')
-rw-r--r--lib/private/Files/View.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index e5394e72ffe..294912e698b 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -50,6 +50,8 @@ use Icewind\Streams\CallbackWrapper;
use OC\Files\Mount\MoveableMount;
use OC\Files\Storage\Storage;
use OC\User\LazyUser;
+use OC\Share\Share;
+use OC\User\User;
use OCA\Files_Sharing\SharedMount;
use OCP\Constants;
use OCP\Files\Cache\ICacheEntry;
@@ -1800,10 +1802,10 @@ class View {
}
// check if any of the parents were shared by the current owner (include collections)
- $shares = \OCP\Share::getItemShared(
+ $shares = Share::getItemShared(
'folder',
$fileId,
- \OCP\Share::FORMAT_NONE,
+ \OC\Share\Constants::FORMAT_NONE,
null,
true
);