Skip to content

Commit

Permalink
fix: use Translation class
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed May 28, 2023
1 parent dd4816e commit 4121a5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpmyfaq/admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
$tfa = new TwoFactor($faqConfig);
$res = $tfa->validateToken($token, $userid);
if (!$res) {
$error = $PMF_LANG['msgTwofactorErrorToken'];
$error = Translation::get('msgTwofactorErrorToken');
$action = 'twofactor';
} else {
$user->twoFactorSuccess();
Expand All @@ -161,7 +161,7 @@
exit();
}
} else {
$error = $PMF_LANG['msgTwofactorErrorToken'];
$error = Translation::get('msgTwofactorErrorToken');
$action = 'twofactor';
}
}
Expand Down

0 comments on commit 4121a5e

Please sign in to comment.