aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/proxy.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/proxy.php')
-rw-r--r--apps/files_sharing/lib/proxy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/proxy.php b/apps/files_sharing/lib/proxy.php
index c899a4b4dd3..f595328cc63 100644
--- a/apps/files_sharing/lib/proxy.php
+++ b/apps/files_sharing/lib/proxy.php
@@ -57,7 +57,7 @@ class Proxy extends \OC_FileProxy {
$mountManager = \OC\Files\Filesystem::getMountManager();
$mountedShares = $mountManager->findIn($path);
foreach ($mountedShares as $mount) {
- if ($mount->getStorage() instanceof \OC\Files\Storage\Shared) {
+ if ($mount->getStorage()->instanceOfStorage('\OC\Files\Storage\Shared')) {
$mountPoint = $mount->getMountPoint();
$mountPointName = $mount->getMountPointName();
$target = \OCA\Files_Sharing\Helper::generateUniqueTarget(dirname($path) . '/' . $mountPointName, array(), $view);