From: Robin Appelman Date: Mon, 11 Jan 2016 12:36:26 +0000 (+0100) Subject: fix principal constructor for dav X-Git-Tag: v9.0beta1~332^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=56c3686ad621167d7d834c9f0be0137c3c533721;p=nextcloud-server.git fix principal constructor for dav --- diff --git a/apps/dav/appinfo/app.php b/apps/dav/appinfo/app.php index 950754ee941..3651a5034c5 100644 --- a/apps/dav/appinfo/app.php +++ b/apps/dav/appinfo/app.php @@ -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");