summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/RootCollection.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2021-08-16 17:55:27 +0200
committerThomas Citharel <tcit@tcit.fr>2021-08-16 19:03:00 +0200
commita7b9b398a35c914b39c8eb41f920612a5f21eb36 (patch)
tree696a300f8e7a33827653628464b15b0506f02035 /apps/dav/lib/RootCollection.php
parent5da42273805160f75436f53b829b17e7b4ed2054 (diff)
downloadnextcloud-server-a7b9b398a35c914b39c8eb41f920612a5f21eb36.tar.gz
nextcloud-server-a7b9b398a35c914b39c8eb41f920612a5f21eb36.zip
Expose user language through DAV
Introduces the '{http://nextcloud.com/ns}language' prop that gives the user's language Closes #28449 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/dav/lib/RootCollection.php')
-rw-r--r--apps/dav/lib/RootCollection.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/RootCollection.php b/apps/dav/lib/RootCollection.php
index aa81d2ff222..8d921414d51 100644
--- a/apps/dav/lib/RootCollection.php
+++ b/apps/dav/lib/RootCollection.php
@@ -73,7 +73,8 @@ class RootCollection extends SimpleCollection {
\OC::$server->getAppManager(),
$proxyMapper,
\OC::$server->get(KnownUserService::class),
- \OC::$server->getConfig()
+ \OC::$server->getConfig(),
+ \OC::$server->getL10NFactory()
);
$groupPrincipalBackend = new GroupPrincipalBackend($groupManager, $userSession, $shareManager, $config);
$calendarResourcePrincipalBackend = new ResourcePrincipalBackend($db, $userSession, $groupManager, $logger, $proxyMapper);