refactor global array

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-21 20:51:44 +01:00
parent c5a58e3f36
commit 370ccbdb74
220 changed files with 2227 additions and 2244 deletions

View File

@@ -57,7 +57,7 @@ if ($action == 'add_record' && ! empty($_POST)) {
'content' => $content,
'ttl' => $ttl
))->add();
$success_message = $lng['success']['dns_record_added'];
$success_message = \Froxlor\I18N\Lang::getAll()['success']['dns_record_added'];
} catch (Exception $e) {
\Froxlor\UI\Response::dynamic_error($e->getMessage());
}
@@ -85,7 +85,7 @@ if ($action == 'add_record' && ! empty($_POST)) {
}
unset($_t);
// success message (inline)
$success_message = $lng['success']['dns_record_deleted'];
$success_message = \Froxlor\I18N\Lang::getAll()['success']['dns_record_deleted'];
}
}
}