From 53bca14a27538e457f69fbbdf5aeae2eb3194706 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 5 Apr 2017 22:35:59 +0200 Subject: Do proper DI Signed-off-by: Roeland Jago Douma --- lib/private/Share/Share.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Share/Share.php') diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php index 2b4a57b89a4..b3e4cb2d4aa 100644 --- a/lib/private/Share/Share.php +++ b/lib/private/Share/Share.php @@ -2742,7 +2742,7 @@ class Share extends Constants { 'result' => '', ]; $try = 0; - $discoveryService = \OC::$server->getOCSDiscoveryService(); + $discoveryService = \OC::$server->query(\OCP\OCS\IDiscoveryService::class); while ($result['success'] === false && $try < 2) { $federationEndpoints = $discoveryService->discover($protocol . $remoteDomain, 'FEDERATED_SHARING'); $endpoint = isset($federationEndpoints['share']) ? $federationEndpoints['share'] : '/ocs/v2.php/cloud/shares'; -- cgit v1.2.3