Merge pull request #22644 from owncloud/external-share-manager

inject the correct external share manager into the storage
This commit is contained in:
Thomas Müller 2016-02-25 16:58:00 +01:00
commit 3772a8acdb
1 changed files with 4 additions and 3 deletions

View File

@ -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) {