summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-02-20 15:51:12 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-02-20 15:51:12 +0100
commit30017e3364b502429b784e3054796679217200c9 (patch)
tree42d50e1e165aae47e7f0e8eed544145d19240f52 /apps
parentc48332a14fe4e367e52b3fb2f53e4f58a47a7b66 (diff)
downloadnextcloud-server-30017e3364b502429b784e3054796679217200c9.tar.gz
nextcloud-server-30017e3364b502429b784e3054796679217200c9.zip
Properly set the mount type for external storages
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/Config/ConfigAdapter.php2
-rw-r--r--apps/files_external/lib/Lib/PersonalMount.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_external/lib/Config/ConfigAdapter.php b/apps/files_external/lib/Config/ConfigAdapter.php
index efeb3d75586..34e96df0441 100644
--- a/apps/files_external/lib/Config/ConfigAdapter.php
+++ b/apps/files_external/lib/Config/ConfigAdapter.php
@@ -168,7 +168,7 @@ class ConfigAdapter implements IMountProvider {
$storageConfig->getMountOptions()
);
} else {
- return new MountPoint(
+ return new ExternalMountPoint(
$storage,
'/' . $user->getUID() . '/files' . $storageConfig->getMountPoint(),
null,
diff --git a/apps/files_external/lib/Lib/PersonalMount.php b/apps/files_external/lib/Lib/PersonalMount.php
index c54ed0a79f3..8c8ac0893f6 100644
--- a/apps/files_external/lib/Lib/PersonalMount.php
+++ b/apps/files_external/lib/Lib/PersonalMount.php
@@ -24,14 +24,14 @@
namespace OCA\Files_External\Lib;
-use OC\Files\Mount\MountPoint;
use OC\Files\Mount\MoveableMount;
+use OCA\Files_External\Config\ExternalMountPoint;
use OCA\Files_External\Service\UserStoragesService;
/**
* Person mount points can be moved by the user
*/
-class PersonalMount extends MountPoint implements MoveableMount {
+class PersonalMount extends ExternalMountPoint implements MoveableMount {
/** @var UserStoragesService */
protected $storagesService;