diff options
author | Morris Jobke <hey@morrisjobke.de> | 2021-05-21 15:05:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 15:05:38 +0200 |
commit | b1ad3faf14140e3c85a7eec1dade88cd551cc747 (patch) | |
tree | 9e0cf55364960d052ba99f8417e63a5fadd054a8 /apps/files_sharing/lib | |
parent | 4aae71cd77e5117f06cabcc8a3933328f2df6533 (diff) | |
parent | 81964200639c585ff523c6303fdb99eb0c7c180c (diff) | |
download | nextcloud-server-b1ad3faf14140e3c85a7eec1dade88cd551cc747.tar.gz nextcloud-server-b1ad3faf14140e3c85a7eec1dade88cd551cc747.zip |
Merge pull request #25679 from nextcloud/drop/ocp-user
Drop \OCP\User
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Updater.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/Updater.php b/apps/files_sharing/lib/Updater.php index 2c9ccd10294..976143ab1b0 100644 --- a/apps/files_sharing/lib/Updater.php +++ b/apps/files_sharing/lib/Updater.php @@ -94,11 +94,11 @@ class Updater { * @param string $newPath new path relative to data/user/files */ private static function renameChildren($oldPath, $newPath) { - $absNewPath = \OC\Files\Filesystem::normalizePath('/' . \OCP\User::getUser() . '/files/' . $newPath); - $absOldPath = \OC\Files\Filesystem::normalizePath('/' . \OCP\User::getUser() . '/files/' . $oldPath); + $absNewPath = \OC\Files\Filesystem::normalizePath('/' . \OC_User::getUser() . '/files/' . $newPath); + $absOldPath = \OC\Files\Filesystem::normalizePath('/' . \OC_User::getUser() . '/files/' . $oldPath); $mountManager = \OC\Files\Filesystem::getMountManager(); - $mountedShares = $mountManager->findIn('/' . \OCP\User::getUser() . '/files/' . $oldPath); + $mountedShares = $mountManager->findIn('/' . \OC_User::getUser() . '/files/' . $oldPath); foreach ($mountedShares as $mount) { if ($mount->getStorage()->instanceOfStorage(ISharedStorage::class)) { $mountPoint = $mount->getMountPoint(); |