diff options
author | zulan <git@zulan.net> | 2018-09-24 22:54:57 +0200 |
---|---|---|
committer | zulan <git@zulan.net> | 2018-10-15 19:01:46 +0200 |
commit | cf266ee00491bc0e70fbbb7dc9720a9e2f8c3708 (patch) | |
tree | 54778b79b3db543bd6d2fad3af02fe51afdb1ce9 /settings/Application.php | |
parent | 50a280338e22f34e66f03c1c069fffbf32c912b2 (diff) | |
download | nextcloud-server-cf266ee00491bc0e70fbbb7dc9720a9e2f8c3708.tar.gz nextcloud-server-cf266ee00491bc0e70fbbb7dc9720a9e2f8c3708.zip |
Get l10n within NewUserMailHelper to ensure it always uses the new user's language.
Some related tests had to be changed because they relied on internals, see also from the PHPUnit documentation:
"Exercise caution when using [the at] matcher as it can lead to brittle tests which are too closely tied to specific implementation details."
Signed-off-by: Zulan <git@zulan.net>
Diffstat (limited to 'settings/Application.php')
-rw-r--r-- | settings/Application.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/Application.php b/settings/Application.php index 5b2b606353f..4ad59a64d40 100644 --- a/settings/Application.php +++ b/settings/Application.php @@ -100,7 +100,7 @@ class Application extends App { return new NewUserMailHelper( $defaults, $server->getURLGenerator(), - $server->getL10N('settings'), + $server->getL10NFactory(), $server->getMailer(), $server->getSecureRandom(), new TimeFactory(), |