diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-06-06 11:09:24 +0200 |
---|---|---|
committer | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2023-07-06 15:21:22 +0200 |
commit | 14719110b9c795a95b23c2278168b9d6123b1a62 (patch) | |
tree | 9919ba8c849e3397e23e46ad9f1fdc3f951d3a7f /lib/private/Search/Provider | |
parent | 5538a40029da60547798ae6f9e11179c4ee4a642 (diff) | |
download | nextcloud-server-14719110b9c795a95b23c2278168b9d6123b1a62.tar.gz nextcloud-server-14719110b9c795a95b23c2278168b9d6123b1a62.zip |
chore: Replace \OC::$server->query with \OCP\Server::get in /lib
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Search/Provider')
-rw-r--r-- | lib/private/Search/Provider/File.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Search/Provider/File.php b/lib/private/Search/Provider/File.php index 7046fea33d2..5ec0132cc03 100644 --- a/lib/private/Search/Provider/File.php +++ b/lib/private/Search/Provider/File.php @@ -53,9 +53,9 @@ class File extends PagedProvider { */ public function search($query, int $limit = null, int $offset = null) { /** @var IRootFolder $rootFolder */ - $rootFolder = \OC::$server->query(IRootFolder::class); + $rootFolder = \OCP\Server::get(IRootFolder::class); /** @var IUserSession $userSession */ - $userSession = \OC::$server->query(IUserSession::class); + $userSession = \OCP\Server::get(IUserSession::class); $user = $userSession->getUser(); if (!$user) { return []; |