$filesCollection = new Files\RootCollection($principalBackend, 'principals/users');
$filesCollection->disableListing = $disableListing;
$caldavBackend = new CalDavBackend($db);
- $calendarRoot = new CalendarRoot($principalBackend, $caldavBackend);
+ $calendarRoot = new CalendarRoot($principalBackend, $caldavBackend, 'principals/users');
$calendarRoot->disableListing = $disableListing;
$cardDavBackend = new CardDavBackend(\OC::$server->getDatabaseConnection(), $principalBackend);
- $addressBookRoot = new AddressBookRoot($principalBackend, $cardDavBackend);
+ $addressBookRoot = new AddressBookRoot($principalBackend, $cardDavBackend, 'principals/users');
$addressBookRoot->disableListing = $disableListing;
$children = [
<!-- relative path to main principal collection-->
<substitution>
<key>$principalcollection:</key>
- <value>$root:principals/</value>
+ <value>$root:principals/users/</value>
</substitution>
<!-- the core recored type collections-->