summaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo/v2/direct.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/appinfo/v2/direct.php')
-rw-r--r--apps/dav/appinfo/v2/direct.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/appinfo/v2/direct.php b/apps/dav/appinfo/v2/direct.php
index 522c3d90ce9..1d250a30065 100644
--- a/apps/dav/appinfo/v2/direct.php
+++ b/apps/dav/appinfo/v2/direct.php
@@ -25,6 +25,8 @@ declare(strict_types=1);
*
*/
+use \OCA\DAV\Direct\ServerFactory;
+
// no php execution timeout for webdav
if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
@set_time_limit(0);
@@ -36,7 +38,8 @@ ignore_user_abort(true);
$requestUri = \OC::$server->getRequest()->getRequestUri();
-$serverFactory = new \OCA\DAV\Direct\ServerFactory(\OC::$server->getConfig(), \OC::$server->getL10N('dav'));
+/** @var ServerFactory $serverFactory */
+$serverFactory = \OC::$server->query(ServerFactory::class);
$server = $serverFactory->createServer(
$baseuri,
$requestUri,