diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index fe00b60671..6227a29b00 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -36,10 +36,8 @@ require_once "resources/require.php"; } //add multi-lingual support - require_once "app_languages.php"; - foreach($text as $key => $value) { - $text[$key] = $value[$_SESSION['domain']['language']['code']]; - } + $language = new text; + $text = $language->get(); //check duplicate mac address if ($_GET["mac"] != '' && $_GET["mac"] != "000000000000") {