Set the user language when adding the footer

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2021-01-07 10:41:09 +01:00
parent 0e20ce014a
commit 36388085f6
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with 3 additions and 2 deletions

View File

@ -149,7 +149,7 @@ class NewUserMailHelper {
$l10n->t('Install Client'),
$this->config->getSystemValue('customclient_desktop', 'https://nextcloud.com/install/#install-clients')
);
$emailTemplate->addFooter();
$emailTemplate->addFooter('', $lang);
return $emailTemplate;
}

View File

@ -139,7 +139,7 @@ class NewUserMailHelperTest extends TestCase {
$this->timeFactory
->expects($this->once())
->method('getTime')
->willReturn('12345');
->willReturn(12345);
/** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
$user = $this->createMock(IUser::class);
$user
@ -371,6 +371,7 @@ Welcome to your TestCloud account, you can add, protect, and share your data.
Your username is: john
Set your password: https://example.com/resetPassword/MySuperLongSecureRandomToken
Install Client: https://nextcloud.com/install/#install-clients