diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-07-13 16:23:59 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-07-14 16:34:43 +0200 |
commit | 7e281a07bb66a082a35cbdd52f7d1e418beb4f53 (patch) | |
tree | 9a2ab162c879eec9ede9087d2869a490c3988a49 /apps/dav/appinfo | |
parent | 2c87ce60a04eb98533d430ef7abe386ef0d04c2a (diff) | |
download | nextcloud-server-7e281a07bb66a082a35cbdd52f7d1e418beb4f53.tar.gz nextcloud-server-7e281a07bb66a082a35cbdd52f7d1e418beb4f53.zip |
Use IBootstrap for the app federatedfilesharing
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav/appinfo')
-rw-r--r-- | apps/dav/appinfo/v1/publicwebdav.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/appinfo/v1/publicwebdav.php b/apps/dav/appinfo/v1/publicwebdav.php index e72112aace4..5020efd2ad8 100644 --- a/apps/dav/appinfo/v1/publicwebdav.php +++ b/apps/dav/appinfo/v1/publicwebdav.php @@ -66,8 +66,8 @@ $filesDropPlugin = new \OCA\DAV\Files\Sharing\FilesDropPlugin(); $server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, function (\Sabre\DAV\Server $server) use ($authBackend, $linkCheckPlugin, $filesDropPlugin) { $isAjax = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest'); - $federatedSharingApp = \OC::$server->query(\OCA\FederatedFileSharing\AppInfo\Application::class); - $federatedShareProvider = $federatedSharingApp->getFederatedShareProvider(); + /** @var \OCA\FederatedFileSharing\FederatedShareProvider $shareProvider */ + $federatedShareProvider = \OC::$server->query(\OCA\FederatedFileSharing\FederatedShareProvider::class); if ($federatedShareProvider->isOutgoingServer2serverShareEnabled() === false && !$isAjax) { // this is what is thrown when trying to access a non-existing share throw new \Sabre\DAV\Exception\NotAuthenticated(); |