summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Files.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-06-06 11:09:24 +0200
committerChristoph Wurst <ChristophWurst@users.noreply.github.com>2023-07-06 15:21:22 +0200
commit14719110b9c795a95b23c2278168b9d6123b1a62 (patch)
tree9919ba8c849e3397e23e46ad9f1fdc3f951d3a7f /lib/private/legacy/OC_Files.php
parent5538a40029da60547798ae6f9e11179c4ee4a642 (diff)
downloadnextcloud-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/legacy/OC_Files.php')
-rw-r--r--lib/private/legacy/OC_Files.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Files.php b/lib/private/legacy/OC_Files.php
index b6c45e164ef..7bc1fab94b6 100644
--- a/lib/private/legacy/OC_Files.php
+++ b/lib/private/legacy/OC_Files.php
@@ -333,7 +333,7 @@ class OC_Files {
$rangeArray = self::parseHttpRangeHeader(substr($params['range'], 6), $fileSize);
}
- $dispatcher = \OC::$server->query(IEventDispatcher::class);
+ $dispatcher = \OCP\Server::get(IEventDispatcher::class);
$event = new BeforeDirectFileDownloadEvent($filename);
$dispatcher->dispatchTyped($event);