From 44e89610edf70b7f88bf4ac7c9bf2fec2a9a7bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Wed, 5 Mar 2025 11:04:55 +0100 Subject: [PATCH] fix: No IFactory in constructor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- lib/private/Files/View.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 6409ddbe986..bbad24d3e43 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -61,7 +61,6 @@ class View { private bool $updaterEnabled = true; private UserManager $userManager; private LoggerInterface $logger; - private IFactory $l10nFactory; /** * @throws \Exception If $root contains an invalid path @@ -76,7 +75,6 @@ class View { $this->lockingEnabled = !($this->lockingProvider instanceof \OC\Lock\NoopLockingProvider); $this->userManager = \OC::$server->getUserManager(); $this->logger = \OC::$server->get(LoggerInterface::class); - $this->l10nFactory = \OC::$server->get(IFactory::class); } /** @@ -866,7 +864,7 @@ class View { $targetPath = $targetMount->getMountPoint(); } - $l = $this->l10nFactory->get('files'); + $l = \OC::$server->get(IFactory::class)->get('files'); foreach ($mounts as $mount) { $sourcePath = $this->getRelativePath($mount->getMountPoint()); if ($sourcePath) {