Get correct translations for SecurityProvider
Fixes #7657 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
ea858fcb55
commit
d628341649
|
@ -53,7 +53,7 @@ class SecurityProvider implements IProvider {
|
||||||
throw new InvalidArgumentException();
|
throw new InvalidArgumentException();
|
||||||
}
|
}
|
||||||
|
|
||||||
$l = $this->l10n->get('core', $language);
|
$l = $this->l10n->get('settings', $language);
|
||||||
|
|
||||||
switch ($event->getSubject()) {
|
switch ($event->getSubject()) {
|
||||||
case 'twofactor_success':
|
case 'twofactor_success':
|
||||||
|
|
|
@ -87,7 +87,7 @@ class SecurityProviderTest extends TestCase {
|
||||||
->willReturn('security');
|
->willReturn('security');
|
||||||
$this->l10n->expects($this->once())
|
$this->l10n->expects($this->once())
|
||||||
->method('get')
|
->method('get')
|
||||||
->with('core', $lang)
|
->with('settings', $lang)
|
||||||
->willReturn($l);
|
->willReturn($l);
|
||||||
$this->urlGenerator->expects($this->once())
|
$this->urlGenerator->expects($this->once())
|
||||||
->method('imagePath')
|
->method('imagePath')
|
||||||
|
@ -119,7 +119,7 @@ class SecurityProviderTest extends TestCase {
|
||||||
->willReturn('security');
|
->willReturn('security');
|
||||||
$this->l10n->expects($this->once())
|
$this->l10n->expects($this->once())
|
||||||
->method('get')
|
->method('get')
|
||||||
->with('core', $lang)
|
->with('settings', $lang)
|
||||||
->willReturn($l);
|
->willReturn($l);
|
||||||
$event->expects($this->once())
|
$event->expects($this->once())
|
||||||
->method('getSubject')
|
->method('getSubject')
|
||||||
|
|
Loading…
Reference in New Issue