aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch_dev/v_fax_edit.tmp
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-08-07 20:01:41 -0600
committermcrane <mctch@yahoo.com>2009-08-07 20:01:41 -0600
commite9653939b432451e4523e5381ed351f99a601fe0 (patch)
tree6451e42ab1e78044ec51c808dd35e0e78f2ce1de /config/freeswitch_dev/v_fax_edit.tmp
parent15374edff36f1309e6615660357630bffba8ae0c (diff)
downloadpfsense-packages-e9653939b432451e4523e5381ed351f99a601fe0.tar.gz
pfsense-packages-e9653939b432451e4523e5381ed351f99a601fe0.tar.bz2
pfsense-packages-e9653939b432451e4523e5381ed351f99a601fe0.zip
FreeSWITCH dev package fix syntax errors.
Diffstat (limited to 'config/freeswitch_dev/v_fax_edit.tmp')
-rw-r--r--config/freeswitch_dev/v_fax_edit.tmp6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/freeswitch_dev/v_fax_edit.tmp b/config/freeswitch_dev/v_fax_edit.tmp
index 54729360..76a0449d 100644
--- a/config/freeswitch_dev/v_fax_edit.tmp
+++ b/config/freeswitch_dev/v_fax_edit.tmp
@@ -48,7 +48,7 @@ if (isset($id) && $a_fax[$id]) {
$pconfig['faxdescription'] = $a_fax[$id]['faxdescription'];
}
-
+clearstatcache(); //clear file status cache
$dir_fax_inbox = $v_storage_dir.'/fax/'.$pconfig['faxextension'].'/inbox/';
$dir_fax_sent = $v_storage_dir.'/fax/'.$pconfig['faxextension'].'/sent/';
$dir_fax_temp = $v_storage_dir.'/fax/'.$pconfig['faxextension'].'/temp/';
@@ -298,6 +298,10 @@ if ($_POST) {
$a_fax[] = $ent;
}
+ if (!is_dir($v_storage_dir)) {
+ exec("mkdir ".$v_storage_dir);
+ }
+
if (!is_dir($v_storage_dir.'/fax/')) {
exec("mkdir ".$v_storage_dir."/fax/");
}