diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-03-31 14:02:39 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-04-18 11:37:05 +0200 |
commit | 7550043371db98433a2eecb0f0baa9a0640a52c7 (patch) | |
tree | b7552fb2ffe173a79b7547250b14ebfa660ba588 /lib/private/Server.php | |
parent | 73ef2f3e868fce6ce0be46186136f49f2a96aea8 (diff) | |
download | nextcloud-server-7550043371db98433a2eecb0f0baa9a0640a52c7.tar.gz nextcloud-server-7550043371db98433a2eecb0f0baa9a0640a52c7.zip |
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 <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 4 |
1 files changed, 3 insertions, 1 deletions
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); |