Skip to content

Commit 305ce63

Browse files
fixup: get IFactory from server via get ::class instead of using getL10NFactory function
Co-authored-by: Carl Schwan <[email protected]> Signed-off-by: Salvatore Martire <[email protected]>
1 parent ce8e8bd commit 305ce63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/dav/lib/Connector/Sabre/ServerFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
use OCP\ITagManager;
3838
use OCP\IUserManager;
3939
use OCP\IUserSession;
40+
use OCP\L10N\IFactory;
4041
use OCP\SabrePluginEvent;
4142
use OCP\SystemTag\ISystemTagManager;
4243
use OCP\SystemTag\ISystemTagObjectMapper;
@@ -255,7 +256,7 @@ private function initRootCollection(SimpleCollection $rootCollection, Directory|
255256
\OCP\Server::get(ProxyMapper::class),
256257
\OCP\Server::get(KnownUserService::class),
257258
\OCP\Server::get(IConfig::class),
258-
\OC::$server->getL10NFactory(),
259+
\OCP\Server::get(IFactory::class),
259260
);
260261

261262
// Mount the share collection at /public.php/dav/files/<share token>

0 commit comments

Comments
 (0)