summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorDominik Fuchß <develop@fuchss.org>2023-06-12 19:40:39 +0200
committerDaniel <mail@danielkesselberg.de>2023-06-13 10:31:33 +0200
commite3f6a13e148e6410ec64239a4d7b9e6ca358c81f (patch)
tree449899e223dec093e014c3a707b917251dec3333 /lib/private/Files
parenta4a57409db7500a781f339d52999183de83b6ff7 (diff)
downloadnextcloud-server-e3f6a13e148e6410ec64239a4d7b9e6ca358c81f.tar.gz
nextcloud-server-e3f6a13e148e6410ec64239a4d7b9e6ca358c81f.zip
Fix deprecated method call
Signed-off-by: Dominik Fuchß <develop@fuchss.org>
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Storage/DAV.php3
1 files changed, 2 insertions, 1 deletions
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() {