Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(i18n): double translation
fixes #13938
  • Loading branch information
jeabakker committed Feb 25, 2022
1 parent 3a4c619 commit 36bbf27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/classes/Elgg/Security/Csrf.php
Expand Up @@ -105,7 +105,7 @@ public function validate(Request $request) {
}
} else {
$error_msg = $request->elgg()->translator->translate('actiongatekeeper:missingfields');
throw new CsrfException($request->elgg()->translator->translate($error_msg));
throw new CsrfException($error_msg);
}
}

Expand Down
2 changes: 1 addition & 1 deletion engine/classes/Elgg/Users/Settings.php
Expand Up @@ -337,7 +337,7 @@ public static function setDefaultAccess(\Elgg\Hook $hook) {
}

if (!$user->setPrivateSetting('elgg_default_access', $default_access)) {
$request->validation()->fail('default_access', $default_access, elgg_echo(elgg_echo('user:default_access:failure')));
$request->validation()->fail('default_access', $default_access, elgg_echo('user:default_access:failure'));
return;
}

Expand Down

0 comments on commit 36bbf27

Please sign in to comment.