Fix. Display correct gateway name in URI on Fax Active page

This commit is contained in:
Alexey Melnichuk
2016-03-23 14:02:33 +03:00
parent bb379b997e
commit facbd6a62d
2 changed files with 19 additions and 0 deletions
+7
View File
@@ -202,6 +202,13 @@ HERE;
$task_files .= '<br/>&nbsp;' . basename($row['greeting']);
}
//replace gateway uuid with name
if (sizeof($_SESSION['gateways']) > 0) {
foreach ($_SESSION['gateways'] as $gateway_uuid => $gateway_name) {
$fax_uri = str_replace($gateway_uuid, $gateway_name, $fax_uri);
}
}
echo "<tr>\n";
echo "<td valign='top' class='".$row_style[$c]."'>" . $fax_server . "&nbsp;</td>\n";
echo "<td valign='top' class='".$row_style[$c]."'>" . $task_enabled . "&nbsp;</td>\n";