diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-02-16 11:56:07 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2021-05-21 15:00:34 +0200 |
commit | 81964200639c585ff523c6303fdb99eb0c7c180c (patch) | |
tree | db98b7db0ac8f8b7ba095db611fa65bf92836d13 /apps/files_sharing | |
parent | 7ffee26aa8768736593c77dcb12d17978a6e06b2 (diff) | |
download | nextcloud-server-81964200639c585ff523c6303fdb99eb0c7c180c.tar.gz nextcloud-server-81964200639c585ff523c6303fdb99eb0c7c180c.zip |
Drop \OCP\User
Inlines and remaining usages and drops the deprecated public API.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/Updater.php | 6 | ||||
-rw-r--r-- | apps/files_sharing/list.php | 2 |
2 files changed, 4 insertions, 4 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(); diff --git a/apps/files_sharing/list.php b/apps/files_sharing/list.php index ab40444022d..d3627266c70 100644 --- a/apps/files_sharing/list.php +++ b/apps/files_sharing/list.php @@ -28,7 +28,7 @@ use OCA\Viewer\Event\LoadViewer; use OCP\EventDispatcher\GenericEvent; // Check if we are a user -OCP\User::checkLoggedIn(); +OC_Util::checkLoggedIn(); $config = \OC::$server->getConfig(); $userSession = \OC::$server->getUserSession(); $legacyEventDispatcher = \OC::$server->getEventDispatcher(); |