From 7550043371db98433a2eecb0f0baa9a0640a52c7 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 31 Mar 2020 14:02:39 +0200 Subject: Provide the proper language to the mailer Else we can't properly translate the footer in the recipients e-mail language. Signed-off-by: Roeland Jago Douma --- lib/private/Server.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/private/Server.php') diff --git a/lib/private/Server.php b/lib/private/Server.php index d6c8e57d696..6e197d32ccb 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -164,6 +164,7 @@ use OCP\IL10N; use OCP\IServerContainer; use OCP\ITempManager; use OCP\IUser; +use OCP\L10N\IFactory; use OCP\Lock\ILockingProvider; use OCP\Log\ILogFactory; use OCP\Remote\Api\IApiFactory; @@ -946,7 +947,8 @@ class Server extends ServerContainer implements IServerContainer { $c->getLogger(), $c->query(Defaults::class), $c->getURLGenerator(), - $c->getL10N('lib') + $c->getL10N('lib'), + $c->query(IFactory::class) ); }); $this->registerAlias('Mailer', \OCP\Mail\IMailer::class); -- cgit v1.2.3