Skip to content

Commit 08f6444

Browse files
authored
Merge pull request #25019 from nextcloud/backport/24999/stable20
[stable20] Set the user language when adding the footer
2 parents 43ec70d + 3638808 commit 08f6444

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

apps/settings/lib/Mailer/NewUserMailHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function generateTemplate(IUser $user, $generatePasswordResetToken = fals
149149
$l10n->t('Install Client'),
150150
$this->config->getSystemValue('customclient_desktop', 'https://nextcloud.com/install/#install-clients')
151151
);
152-
$emailTemplate->addFooter();
152+
$emailTemplate->addFooter('', $lang);
153153

154154
return $emailTemplate;
155155
}

apps/settings/tests/Mailer/NewUserMailHelperTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function testGenerateTemplateWithPasswordResetToken() {
139139
$this->timeFactory
140140
->expects($this->once())
141141
->method('getTime')
142-
->willReturn('12345');
142+
->willReturn(12345);
143143
/** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
144144
$user = $this->createMock(IUser::class);
145145
$user
@@ -371,6 +371,7 @@ public function testGenerateTemplateWithPasswordResetToken() {
371371
372372
Your username is: john
373373
374+
374375
Set your password: https://example.com/resetPassword/MySuperLongSecureRandomToken
375376
Install Client: https://nextcloud.com/install/#install-clients
376377

0 commit comments

Comments
 (0)