diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-02-25 13:33:42 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-02-25 14:49:25 +0100 |
commit | f338329ddf925ab5fa3c489f55650a865db6db97 (patch) | |
tree | cfd230fca2c9f4186107bcaf9aae185a82b16645 /apps/files_sharing/lib | |
parent | 914ac09aaec9e4f8c5e0ed10ca881cc85cef4b28 (diff) | |
download | nextcloud-server-f338329ddf925ab5fa3c489f55650a865db6db97.tar.gz nextcloud-server-f338329ddf925ab5fa3c489f55650a865db6db97.zip |
inject the correct external share manager into the storage
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/external/mountprovider.php | 7 |
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 0bef3539c42..67d85f27d81 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) { |