diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-05-06 18:11:54 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-05-06 18:11:54 +0200 |
commit | ecbc009e2fc8aa7fd078634f4cb2271fded69fb6 (patch) | |
tree | 06a38a88467567ec86ee55bf2f83947f32a1607c /apps/dav/lib/Direct | |
parent | afc59665582dbd83c4c25cab21a5b30b79cac676 (diff) | |
download | nextcloud-server-ecbc009e2fc8aa7fd078634f4cb2271fded69fb6.tar.gz nextcloud-server-ecbc009e2fc8aa7fd078634f4cb2271fded69fb6.zip |
Translate the maintenance mode message in webdav
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav/lib/Direct')
-rw-r--r-- | apps/dav/lib/Direct/ServerFactory.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/dav/lib/Direct/ServerFactory.php b/apps/dav/lib/Direct/ServerFactory.php index f0f56921bdc..aa229e3baf3 100644 --- a/apps/dav/lib/Direct/ServerFactory.php +++ b/apps/dav/lib/Direct/ServerFactory.php @@ -31,14 +31,18 @@ use OCA\DAV\Db\DirectMapper; use OCP\AppFramework\Utility\ITimeFactory; use OCP\Files\IRootFolder; use OCP\IConfig; +use OCP\IL10N; use OCP\IRequest; class ServerFactory { /** @var IConfig */ private $config; + /** @var IL10N */ + private $l10n; - public function __construct(IConfig $config) { + public function __construct(IConfig $config, IL10N $l10n) { $this->config = $config; + $this->l10n = $l10n; } public function createServer(string $baseURI, @@ -54,7 +58,7 @@ class ServerFactory { $server->httpRequest->setUrl($requestURI); $server->setBaseUri($baseURI); - $server->addPlugin(new \OCA\DAV\Connector\Sabre\MaintenancePlugin($this->config)); + $server->addPlugin(new \OCA\DAV\Connector\Sabre\MaintenancePlugin($this->config, $this->l10n)); return $server; } |