diff options
Diffstat (limited to 'apps/dav/lib/CardDAV/ContactsManager.php')
-rw-r--r-- | apps/dav/lib/CardDAV/ContactsManager.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/dav/lib/CardDAV/ContactsManager.php b/apps/dav/lib/CardDAV/ContactsManager.php index 3f2019d582b..b2e3544b287 100644 --- a/apps/dav/lib/CardDAV/ContactsManager.php +++ b/apps/dav/lib/CardDAV/ContactsManager.php @@ -25,19 +25,25 @@ namespace OCA\DAV\CardDAV; use OCP\Contacts\IManager; +use OCP\IL10N; use OCP\IURLGenerator; class ContactsManager { /** @var CardDavBackend */ private $backend; + /** @var IL10N */ + private $l10n; + /** * ContactsManager constructor. * * @param CardDavBackend $backend + * @param IL10N $l10n */ - public function __construct(CardDavBackend $backend) { + public function __construct(CardDavBackend $backend, IL10N $l10n) { $this->backend = $backend; + $this->l10n = $l10n; } /** @@ -59,7 +65,7 @@ class ContactsManager { */ private function register(IManager $cm, $addressBooks, $urlGenerator) { foreach ($addressBooks as $addressBookInfo) { - $addressBook = new \OCA\DAV\CardDAV\AddressBook($this->backend, $addressBookInfo); + $addressBook = new \OCA\DAV\CardDAV\AddressBook($this->backend, $addressBookInfo, $this->l10n); $cm->registerAddressBook( new AddressBookImpl( $addressBook, |