From e3f6a13e148e6410ec64239a4d7b9e6ca358c81f Mon Sep 17 00:00:00 2001 From: Dominik Fuchß Date: Mon, 12 Jun 2023 19:40:39 +0200 Subject: Fix deprecated method call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dominik Fuchß --- lib/private/Files/Storage/DAV.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/private/Files') diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index a769f799ed3..b5b8b548787 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -51,6 +51,7 @@ use OCP\Files\StorageInvalidException; use OCP\Files\StorageNotAvailableException; use OCP\Http\Client\IClientService; use OCP\ICertificateManager; +use OCP\IConfig; use OCP\Util; use Psr\Http\Message\ResponseInterface; use Sabre\DAV\Client; @@ -139,7 +140,7 @@ class DAV extends Common { $this->logger = \OC::$server->get(LoggerInterface::class); $this->eventLogger = \OC::$server->get(IEventLogger::class); // This timeout value will be used for the download and upload of files - $this->timeout = \OC::$server->getConfig()->getSystemValueInt('davstorage.request_timeout', 30); + $this->timeout = \OC::$server->get(IConfig::class)->getSystemValueInt('davstorage.request_timeout', 30); } protected function init() { -- cgit v1.2.3