diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-02 09:24:22 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-02 09:46:53 +0100 |
commit | d62834164915fe5ca7c58f7a7ca2d57396593e13 (patch) | |
tree | 40c6acc35e4db5ef03a6dde1aa34c632a6577934 | |
parent | ea858fcb553aff59f50e4dcabc42fc8c7c2f200d (diff) | |
download | nextcloud-server-d62834164915fe5ca7c58f7a7ca2d57396593e13.tar.gz nextcloud-server-d62834164915fe5ca7c58f7a7ca2d57396593e13.zip |
Get correct translations for SecurityProvider
Fixes #7657
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r-- | settings/Activity/SecurityProvider.php | 2 | ||||
-rw-r--r-- | tests/Settings/Activity/SecurityProviderTest.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/settings/Activity/SecurityProvider.php b/settings/Activity/SecurityProvider.php index f0789842e82..680881b6e31 100644 --- a/settings/Activity/SecurityProvider.php +++ b/settings/Activity/SecurityProvider.php @@ -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': diff --git a/tests/Settings/Activity/SecurityProviderTest.php b/tests/Settings/Activity/SecurityProviderTest.php index 21fc28f3c3b..552548984d7 100644 --- a/tests/Settings/Activity/SecurityProviderTest.php +++ b/tests/Settings/Activity/SecurityProviderTest.php @@ -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') |