From 3415933bd8725520965358b88b396f374fe25465 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 25 Feb 2016 13:33:42 +0100 Subject: inject the correct external share manager into the storage --- apps/files_sharing/lib/external/mountprovider.php | 7 ++++--- 1 file 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) { -- cgit v1.2.3