Remove count($_SESSION["domains"]) > 1 from the as the domain name should always be part of the fax directory path.

This commit is contained in:
markjcrane
2015-12-08 21:59:09 -07:00
parent cbc2c81348
commit 532e01b5c0
2 changed files with 1 additions and 3 deletions

View File

@@ -931,7 +931,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "</table>"; echo "</table>";
echo "<br>"; echo "<br>";
echo "</div>\n"; echo "</div>\n";
} }
echo "</form>"; echo "</form>";

View File

@@ -213,7 +213,7 @@ function fax_split_dtmf(&$fax_number, &$fax_dtmf){
mkdir($_SESSION['switch']['storage']['dir'].'/fax'); mkdir($_SESSION['switch']['storage']['dir'].'/fax');
chmod($_SESSION['switch']['storage']['dir'].'/fax',0774); chmod($_SESSION['switch']['storage']['dir'].'/fax',0774);
} }
if (count($_SESSION["domains"]) > 1 && !is_dir($_SESSION['switch']['storage']['dir'].'/fax/'.$_SESSION['domain_name'])) { if (!is_dir($_SESSION['switch']['storage']['dir'].'/fax/'.$_SESSION['domain_name'])) {
mkdir($_SESSION['switch']['storage']['dir'].'/fax/'.$_SESSION['domain_name']); mkdir($_SESSION['switch']['storage']['dir'].'/fax/'.$_SESSION['domain_name']);
chmod($_SESSION['switch']['storage']['dir'].'/fax/'.$_SESSION['domain_name'],0774); chmod($_SESSION['switch']['storage']['dir'].'/fax/'.$_SESSION['domain_name'],0774);
} }
@@ -238,7 +238,6 @@ function fax_split_dtmf(&$fax_number, &$fax_dtmf){
//clear file status cache //clear file status cache
clearstatcache(); clearstatcache();
//send the fax //send the fax
$continue = false; $continue = false;