Revert "refactor global array"

This reverts commit 370ccbdb74.
This commit is contained in:
Michael Kaufmann
2018-12-22 08:15:31 +01:00
parent c800e89414
commit 7e39a7bc60
220 changed files with 2244 additions and 2227 deletions

View File

@@ -47,7 +47,7 @@ if ($action == 'delete') {
'd2fa' => "",
'id' => $uid
));
\Froxlor\UI\Response::standard_success(\Froxlor\I18N\Lang::getAll()['2fa']['2fa_removed']);
\Froxlor\UI\Response::standard_success($lng['2fa']['2fa_removed']);
} elseif ($action == 'add') {
$type = isset($_POST['type_2fa']) ? $_POST['type_2fa'] : '0';
@@ -63,7 +63,7 @@ if ($action == 'delete') {
'd2fa' => $data,
'id' => $uid
));
\Froxlor\UI\Response::standard_success(sprintf(\Froxlor\I18N\Lang::getAll()['2fa']['2fa_added'], $filename, $s));
\Froxlor\UI\Response::standard_success(sprintf($lng['2fa']['2fa_added'], $filename, $s));
}
$log->logAction(USR_ACTION, LOG_NOTICE, "viewed 2fa::overview");