From e50fecbf751a91c4388eb13c39fbb2d3ccba3a2d Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 26 Dec 2012 16:26:20 +0000 Subject: [PATCH] Fix a recent bug caused by adding the multi-lingual framework to gateways late last week. --- app/gateways/app_languages.php | 4 ++-- app/gateways/gateway_edit.php | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/gateways/app_languages.php b/app/gateways/app_languages.php index 7a1e0a39e6..658ae93aef 100644 --- a/app/gateways/app_languages.php +++ b/app/gateways/app_languages.php @@ -12,8 +12,8 @@ $text['description-gateway-edit']['en-us'] = 'Defines a connections to a SIP Provider or another SIP server.'; $text['description-gateway-edit']['pt-pt'] = ''; - $text['label-gateway-name']['en-us'] = 'Gateway'; - $text['label-gateway-name']['pt-pt'] = ''; + $text['label-gateway']['en-us'] = 'Gateway'; + $text['label-gateway']['pt-pt'] = ''; $text['description-gateway-name']['en-us'] = 'Enter the gateway name here.'; $text['description-gateway-name']['pt-pt'] = ''; diff --git a/app/gateways/gateway_edit.php b/app/gateways/gateway_edit.php index f1cc2b4932..dc1c4460a3 100644 --- a/app/gateways/gateway_edit.php +++ b/app/gateways/gateway_edit.php @@ -86,7 +86,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { } //check for all required data - if (strlen($gateway_uuid) == 0) { $msg .= $text['message-required']." ".$text['label-gateway_uuid']."
\n"; } //if (strlen($domain_uuid) == 0) { $msg .= $text['message-required']." ".$text['label-domain_uuid']."
\n"; } if (strlen($gateway) == 0) { $msg .= $text['message-required']." ".$text['label-gateway']."
\n"; } if ($register == "true") { @@ -373,7 +372,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; - echo " ".$text['label-gateway-name'].":\n"; + echo " ".$text['label-gateway'].":\n"; echo "\n"; echo "\n"; echo " \n";