diff options
author | Leon Klingele <leon@struktur.de> | 2017-09-07 16:33:45 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2017-11-03 11:19:39 +0100 |
commit | c899f352615f498b183a020e5dcd6f9b1190db1f (patch) | |
tree | 98bcecda183ea01011b1d0a4e2963715b2b2023c /apps/dav/lib/Server.php | |
parent | b3ff9a2248f18fac4b2a9ffa5be99c464effb4b6 (diff) | |
download | nextcloud-server-c899f352615f498b183a020e5dcd6f9b1190db1f.tar.gz nextcloud-server-c899f352615f498b183a020e5dcd6f9b1190db1f.zip |
DAV: Initial email customization support
Signed-Off-By: Leon Klingele <leon@struktur.de>
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r-- | apps/dav/lib/Server.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index 719e4974755..2d03f09b625 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -77,6 +77,7 @@ class Server { $dispatcher = \OC::$server->getEventDispatcher(); $timezone = new TimeFactory(); $sendInvitations = \OC::$server->getConfig()->getAppValue('dav', 'sendInvitations', 'yes') === 'yes'; + $l10nFactory = \OC::$server->getL10NFactory(); $root = new RootCollection(); $this->server = new \OCA\DAV\Connector\Sabre\Server(new CachingTree($root)); @@ -139,7 +140,15 @@ class Server { $this->server->addPlugin(new \Sabre\CalDAV\ICSExportPlugin()); $this->server->addPlugin(new \OCA\DAV\CalDAV\Schedule\Plugin()); if ($sendInvitations) { - $this->server->addPlugin(new IMipPlugin($mailer, $logger, $timezone)); + $this->server->addPlugin(new IMipPlugin( + 'dav', // TODO(leon): Retrieve dynamically, but where to find it? :( + \OC::$server->getUserSession()->getUser()->getUID(), + \OC::$server->getConfig(), + $mailer, + $logger, + $timezone, + $l10nFactory + )); } $this->server->addPlugin(new \Sabre\CalDAV\Subscriptions\Plugin()); $this->server->addPlugin(new \Sabre\CalDAV\Notifications\Plugin()); |