diff options
author | Marcel Müller <marcel-mueller@gmx.de> | 2025-03-05 11:04:55 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2025-03-05 12:48:51 +0100 |
commit | 056d1fa0b505aee911f2e88c030e1e8fe6e29343 (patch) | |
tree | 464b83694a65f34e23ddbe4ccdfc58f9d18bc7dd | |
parent | ccae0e307050ad3e8571bb89da90ed4262320905 (diff) | |
download | nextcloud-server-backport/51259/stable28.tar.gz nextcloud-server-backport/51259/stable28.zip |
fix: No IFactory in constructorbackport/51259/stable28
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
-rw-r--r-- | lib/private/Files/View.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 41392c08cc9..4abef391028 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -68,7 +68,6 @@ use OCP\Files\Mount\IMountPoint; use OCP\Files\NotFoundException; use OCP\Files\ReservedWordException; use OCP\Files\Storage\IStorage; -use OCP\IL10N; use OCP\IUser; use OCP\L10N\IFactory; use OCP\Lock\ILockingProvider; @@ -98,7 +97,6 @@ class View { private bool $updaterEnabled = true; private UserManager $userManager; private LoggerInterface $logger; - private IFactory $l10nFactory; /** * @throws \Exception If $root contains an invalid path @@ -113,7 +111,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); } /** @@ -893,7 +890,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) { |