summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-25 13:33:42 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-25 15:43:38 +0100
commit3415933bd8725520965358b88b396f374fe25465 (patch)
tree661723aba83708647935f2c3756223e5f997b71e
parent75f95879152c4772d7ebabdbdc7620412dd82503 (diff)
downloadnextcloud-server-3415933bd8725520965358b88b396f374fe25465.tar.gz
nextcloud-server-3415933bd8725520965358b88b396f374fe25465.zip
inject the correct external share manager into the storage
-rw-r--r--apps/files_sharing/lib/external/mountprovider.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/external/mountprovider.php b/apps/files_sharing/lib/external/mountprovider.php
index 1739cec543f..b34fa4327d6 100644
--- a/apps/files_sharing/lib/external/mountprovider.php
+++ b/apps/files_sharing/lib/external/mountprovider.php
@@ -49,12 +49,13 @@ class MountProvider implements IMountProvider {
}
public function getMount(IUser $user, $data, IStorageFactory $storageFactory) {
- $data['manager'] = $this;
+ $managerProvider = $this->managerProvider;
+ $manager = $managerProvider();
+ $data['manager'] = $manager;
$mountPoint = '/' . $user->getUID() . '/files/' . ltrim($data['mountpoint'], '/');
$data['mountpoint'] = $mountPoint;
$data['certificateManager'] = \OC::$server->getCertificateManager($user->getUID());
- $managerProvider = $this->managerProvider;
- return new Mount(self::STORAGE, $mountPoint, $data, $managerProvider(), $storageFactory);
+ return new Mount(self::STORAGE, $mountPoint, $data, $manager, $storageFactory);
}
public function getMountsForUser(IUser $user, IStorageFactory $loader) {