summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/RootCollection.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-12-12 08:29:26 +0100
committerGitHub <noreply@github.com>2017-12-12 08:29:26 +0100
commitd98dea1eb139ae33dfce28f5c61b140518ef4d1d (patch)
tree6bd1527425761a5b9c6657874e573f9a4ae8a38d /apps/dav/lib/RootCollection.php
parente1740c92421d9f6e05210c1cd69811e429f88410 (diff)
parent2b51d84b98a5a44c2a42a8498164a35b6822e760 (diff)
downloadnextcloud-server-d98dea1eb139ae33dfce28f5c61b140518ef4d1d.tar.gz
nextcloud-server-d98dea1eb139ae33dfce28f5c61b140518ef4d1d.zip
Merge pull request #6884 from nextcloud/feature/3003/opt_out_of_birthday_calendar
Opt out of birthday calendar
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 f2e9350c101..a39b8716110 100644
--- a/apps/dav/lib/RootCollection.php
+++ b/apps/dav/lib/RootCollection.php
@@ -39,6 +39,7 @@ class RootCollection extends SimpleCollection {
public function __construct() {
$config = \OC::$server->getConfig();
+ $l10n = \OC::$server->getL10N('dav');
$random = \OC::$server->getSecureRandom();
$logger = \OC::$server->getLogger();
$userManager = \OC::$server->getUserManager();
@@ -68,7 +69,7 @@ class RootCollection extends SimpleCollection {
$caldavBackend = new CalDavBackend($db, $userPrincipalBackend, $userManager, $groupManager, $random, $logger, $dispatcher);
$calendarRoot = new CalendarRoot($userPrincipalBackend, $caldavBackend, 'principals/users');
$calendarRoot->disableListing = $disableListing;
- $publicCalendarRoot = new PublicCalendarRoot($caldavBackend);
+ $publicCalendarRoot = new PublicCalendarRoot($caldavBackend, $l10n, $config);
$publicCalendarRoot->disableListing = $disableListing;
$systemTagCollection = new SystemTag\SystemTagsByIdCollection(