Merge pull request #7659 from nextcloud/fix_7657
Get correct translations for SecurityProvider
This commit is contained in:
commit
9e49b6e2bb
2 changed files with 3 additions and 3 deletions
|
@ -53,7 +53,7 @@ class SecurityProvider implements IProvider {
|
|||
throw new InvalidArgumentException();
|
||||
}
|
||||
|
||||
$l = $this->l10n->get('core', $language);
|
||||
$l = $this->l10n->get('settings', $language);
|
||||
|
||||
switch ($event->getSubject()) {
|
||||
case 'twofactor_success':
|
||||
|
|
|
@ -87,7 +87,7 @@ class SecurityProviderTest extends TestCase {
|
|||
->willReturn('security');
|
||||
$this->l10n->expects($this->once())
|
||||
->method('get')
|
||||
->with('core', $lang)
|
||||
->with('settings', $lang)
|
||||
->willReturn($l);
|
||||
$this->urlGenerator->expects($this->once())
|
||||
->method('imagePath')
|
||||
|
@ -119,7 +119,7 @@ class SecurityProviderTest extends TestCase {
|
|||
->willReturn('security');
|
||||
$this->l10n->expects($this->once())
|
||||
->method('get')
|
||||
->with('core', $lang)
|
||||
->with('settings', $lang)
|
||||
->willReturn($l);
|
||||
$event->expects($this->once())
|
||||
->method('getSubject')
|
||||
|
|
Loading…
Reference in a new issue