more language migrations

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-04-29 10:01:58 +02:00
parent 0dc77997fe
commit 6116dda9bb
13 changed files with 37 additions and 102 deletions

View File

@@ -135,8 +135,6 @@ class Domain
*/
public static function getRedirectCodes($add_desc = true)
{
global $lng;
$sql = "SELECT * FROM `" . TABLE_PANEL_REDIRECTCODES . "` WHERE `enabled` = '1' ORDER BY `id` ASC";
$result_stmt = Database::query($sql);
@@ -144,7 +142,7 @@ class Domain
while ($rc = $result_stmt->fetch(PDO::FETCH_ASSOC)) {
$codes[$rc['id']] = $rc['code'];
if ($add_desc) {
$codes[$rc['id']] .= ' (' . $lng['redirect_desc'][$rc['desc']] . ')';
$codes[$rc['id']] .= ' (' . lng('redirect_desc.' . $rc['desc']) . ')';
}
}

View File

@@ -53,9 +53,8 @@ class IpAddr
public static function getSslIpPortCombinations()
{
global $lng;
return [
'' => $lng['panel']['none_value']
'' => lng('panel.none_value')
] + self::getIpPortCombinations(true);
}