aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Müller <marcel-mueller@gmx.de>2025-03-05 11:04:55 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-03-05 11:41:20 +0000
commit76c1bbf48b1d9933dc252593b626fcf52c4372f4 (patch)
treefbf8663f72f2046ea8268b9126e7a79272f55717
parentdf1f3c176829ef4e9d535694fbf80af9271d857d (diff)
downloadnextcloud-server-backport/51259/stable29.tar.gz
nextcloud-server-backport/51259/stable29.zip
fix: No IFactory in constructorbackport/51259/stable29
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
-rw-r--r--lib/private/Files/View.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index bf92f5027d9..8b3de59eeb0 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -99,7 +99,6 @@ class View {
private bool $updaterEnabled = true;
private UserManager $userManager;
private LoggerInterface $logger;
- private IFactory $l10nFactory;
/**
* @throws \Exception If $root contains an invalid path
@@ -114,7 +113,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);
}
/**
@@ -900,7 +898,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) {