Skip to content

Commit

Permalink
Get correct translations for SecurityProvider
Browse files Browse the repository at this point in the history
Fixes #7657

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Jan 2, 2018
1 parent ea858fc commit d628341
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion settings/Activity/SecurityProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function parse($language, IEvent $event, IEvent $previousEvent = null) {
throw new InvalidArgumentException();
}

$l = $this->l10n->get('core', $language);
$l = $this->l10n->get('settings', $language);

switch ($event->getSubject()) {
case 'twofactor_success':
Expand Down
4 changes: 2 additions & 2 deletions tests/Settings/Activity/SecurityProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function testParse($subject) {
->willReturn('security');
$this->l10n->expects($this->once())
->method('get')
->with('core', $lang)
->with('settings', $lang)
->willReturn($l);
$this->urlGenerator->expects($this->once())
->method('imagePath')
Expand Down Expand Up @@ -119,7 +119,7 @@ public function testParseInvalidSubject() {
->willReturn('security');
$this->l10n->expects($this->once())
->method('get')
->with('core', $lang)
->with('settings', $lang)
->willReturn($l);
$event->expects($this->once())
->method('getSubject')
Expand Down

0 comments on commit d628341

Please sign in to comment.