mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: No IFactory in constructor
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
parent
259919e9fd
commit
c6ca459b40
1 changed files with 1 additions and 3 deletions
|
|
@ -60,7 +60,6 @@ class View {
|
|||
private bool $updaterEnabled = true;
|
||||
private UserManager $userManager;
|
||||
private LoggerInterface $logger;
|
||||
private IFactory $l10nFactory;
|
||||
|
||||
/**
|
||||
* @throws \Exception If $root contains an invalid path
|
||||
|
|
@ -75,7 +74,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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -865,7 +863,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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue