aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-11-26 17:08:48 +0100
committerRobin Appelman <robin@icewind.nl>2024-11-26 17:44:58 +0100
commitb2c01785ae5803557668ecb2c0bd33f0e73703d7 (patch)
treec3934ebba69cfe75039b1660bfabe74c0099b45f /lib
parentdf3a9e221d08d7e114da0a52994e6e2e43decc8a (diff)
downloadnextcloud-server-b2c01785ae5803557668ecb2c0bd33f0e73703d7.tar.gz
nextcloud-server-b2c01785ae5803557668ecb2c0bd33f0e73703d7.zip
fix: fix availability wrapper not applying
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/SetupManager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php
index befbf4fff46..2b8121a529d 100644
--- a/lib/private/Files/SetupManager.php
+++ b/lib/private/Files/SetupManager.php
@@ -24,7 +24,7 @@ use OC\Share20\ShareDisableChecker;
use OC_App;
use OC_Hook;
use OC_Util;
-use OCA\Files_External\Config\ConfigAdapter;
+use OCA\Files_External\Config\ExternalMountPoint;
use OCA\Files_Sharing\External\Mount;
use OCA\Files_Sharing\ISharedMountPoint;
use OCA\Files_Sharing\SharedMount;
@@ -135,7 +135,7 @@ class SetupManager {
// install storage availability wrapper, before most other wrappers
Filesystem::addStorageWrapper('oc_availability', function ($mountPoint, IStorage $storage, IMountPoint $mount) {
- $externalMount = $mount instanceof ConfigAdapter || $mount instanceof Mount;
+ $externalMount = $mount instanceof ExternalMountPoint || $mount instanceof Mount;
if ($externalMount && !$storage->isLocal()) {
return new Availability(['storage' => $storage]);
}