From aec5eb9161aa1044e097e4fc8f6cd298ff2e92e6 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Thu, 7 Nov 2013 16:46:19 +0100 Subject: [PATCH] fix undefined language-string index in add/edit ip Signed-off-by: Michael Kaufmann (d00p) --- admin_ipsandports.php | 4 ---- .../admin/ipsandports/formfield.ipsandports_add.php | 3 ++- .../admin/ipsandports/formfield.ipsandports_edit.php | 3 ++- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/admin_ipsandports.php b/admin_ipsandports.php index efe4d8e2..c5a92832 100644 --- a/admin_ipsandports.php +++ b/admin_ipsandports.php @@ -18,10 +18,6 @@ */ define('AREA', 'admin'); - -/** - * Include our init.php, which manages Sessions, Language etc. - */ require ("./lib/init.php"); if (isset($_POST['id'])) { diff --git a/lib/formfields/admin/ipsandports/formfield.ipsandports_add.php b/lib/formfields/admin/ipsandports/formfield.ipsandports_add.php index bda86996..35a7fda1 100644 --- a/lib/formfields/admin/ipsandports/formfield.ipsandports_add.php +++ b/lib/formfields/admin/ipsandports/formfield.ipsandports_add.php @@ -126,7 +126,8 @@ return array( 'type' => 'text' ), 'ssl_cert_chainfile' => array( - 'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile'], + 'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['title'], + 'desc' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['description'], 'type' => 'text' ) ) diff --git a/lib/formfields/admin/ipsandports/formfield.ipsandports_edit.php b/lib/formfields/admin/ipsandports/formfield.ipsandports_edit.php index 7fcd64fb..32f87e38 100644 --- a/lib/formfields/admin/ipsandports/formfield.ipsandports_edit.php +++ b/lib/formfields/admin/ipsandports/formfield.ipsandports_edit.php @@ -134,7 +134,8 @@ return array( 'value' => $result['ssl_ca_file'] ), 'ssl_cert_chainfile' => array( - 'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile'], + 'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['title'], + 'desc' => $lng['admin']['ipsandports']['ssl_cert_chainfile']['description'], 'type' => 'text', 'value' => $result['ssl_cert_chainfile'] )