diff options
author | Marcel Müller <marcel-mueller@gmx.de> | 2025-03-05 11:04:55 +0100 |
---|---|---|
committer | Marcel Müller <marcel-mueller@gmx.de> | 2025-03-05 11:04:55 +0100 |
commit | 3391279068f0af1bf5c829e4d8a03193918876dd (patch) | |
tree | 52d8bd68482d43d5ec4e6d65564275936e0cda83 /lib | |
parent | 0522b0373e3779abfe35332e5ae397b26481201b (diff) | |
download | nextcloud-server-3391279068f0af1bf5c829e4d8a03193918876dd.tar.gz nextcloud-server-3391279068f0af1bf5c829e4d8a03193918876dd.zip |
fix: No IFactory in constructorbugfix/50619/no-session-work-in-constructor
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/View.php | 4 |
1 files changed, 1 insertions, 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) { |