From c757e68cd1090596f5f8cfa96f411d4a3e47c060 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sun, 18 Jan 2015 07:42:57 +0000 Subject: [PATCH] Use the new text class for multi-lingual support. --- app/devices/device_edit.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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") {