From 065ef14cb025f6664c7a3ed1aa89d333a2944342 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 9 Jul 2020 23:39:58 +0200 Subject: Move OC_Mount_Config to proper classname and remove OC::$CLASSPATH usage in files_external Signed-off-by: Morris Jobke --- lib/private/Encryption/File.php | 2 +- lib/private/Encryption/Util.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private/Encryption') diff --git a/lib/private/Encryption/File.php b/lib/private/Encryption/File.php index 13879c02cdc..b631e4fc63f 100644 --- a/lib/private/Encryption/File.php +++ b/lib/private/Encryption/File.php @@ -110,7 +110,7 @@ class File implements \OCP\Encryption\IFile { // check if it is a group mount if (\OCP\App::isEnabled("files_external")) { - $mounts = \OC_Mount_Config::getSystemMountPoints(); + $mounts = \OCA\Files_External\MountConfig::getSystemMountPoints(); foreach ($mounts as $mount) { if ($mount['mountpoint'] == substr($ownerPath, 1, strlen($mount['mountpoint']))) { $mountedFor = $this->util->getUserWithAccessToMountPoint($mount['applicable']['users'], $mount['applicable']['groups']); diff --git a/lib/private/Encryption/Util.php b/lib/private/Encryption/Util.php index 8b3360c30e0..0bda00a5cbc 100644 --- a/lib/private/Encryption/Util.php +++ b/lib/private/Encryption/Util.php @@ -299,7 +299,7 @@ class Util { */ public function isSystemWideMountPoint($path, $uid) { if (\OCP\App::isEnabled("files_external")) { - $mounts = \OC_Mount_Config::getSystemMountPoints(); + $mounts = \OCA\Files_External\MountConfig::getSystemMountPoints(); foreach ($mounts as $mount) { if (strpos($path, '/files/' . $mount['mountpoint']) === 0) { if ($this->isMountPointApplicableToUser($mount, $uid)) { -- cgit v1.2.3