Fix a recent bug caused by adding the multi-lingual framework to gateways late last week.

This commit is contained in:
Mark Crane 2012-12-26 16:26:20 +00:00
parent 31315a131c
commit e50fecbf75
2 changed files with 3 additions and 4 deletions

View File

@ -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'] = '';

View File

@ -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']."<br>\n"; }
//if (strlen($domain_uuid) == 0) { $msg .= $text['message-required']." ".$text['label-domain_uuid']."<br>\n"; }
if (strlen($gateway) == 0) { $msg .= $text['message-required']." ".$text['label-gateway']."<br>\n"; }
if ($register == "true") {
@ -373,7 +372,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td width=\"30%\" class='vncellreq' valign='top' align='left' nowrap>\n";
echo " ".$text['label-gateway-name'].":\n";
echo " ".$text['label-gateway'].":\n";
echo "</td>\n";
echo "<td width=\"70%\" class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='gateway' maxlength='255' value=\"$gateway\">\n";