]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix principal constructor for dav
authorRobin Appelman <icewind@owncloud.com>
Mon, 11 Jan 2016 12:36:26 +0000 (13:36 +0100)
committerRobin Appelman <icewind@owncloud.com>
Mon, 11 Jan 2016 12:36:26 +0000 (13:36 +0100)
apps/dav/appinfo/app.php

index 950754ee941e3710b641c7bffe168c9c8a1b29a3..3651a5034c5160aac60c5cd3d569439f26123659 100644 (file)
@@ -24,8 +24,7 @@ $cm->register(function() use ($cm) {
        $db = \OC::$server->getDatabaseConnection();
        $userId = \OC::$server->getUserSession()->getUser()->getUID();
        $principal = new \OCA\DAV\Connector\Sabre\Principal(
-                       \OC::$server->getConfig(),
-                       \OC::$server->getUserManager()
+               \OC::$server->getUserManager()
        );
        $cardDav = new \OCA\DAV\CardDAV\CardDavBackend($db, $principal, \OC::$server->getLogger());
        $addressBooks = $cardDav->getAddressBooksForUser("principals/$userId");