diff options
author | mcrane <mctch@yahoo.com> | 2009-08-07 20:01:41 -0600 |
---|---|---|
committer | mcrane <mctch@yahoo.com> | 2009-08-07 20:01:41 -0600 |
commit | e9653939b432451e4523e5381ed351f99a601fe0 (patch) | |
tree | 6451e42ab1e78044ec51c808dd35e0e78f2ce1de /config/freeswitch_dev/v_fax_edit.tmp | |
parent | 15374edff36f1309e6615660357630bffba8ae0c (diff) | |
download | pfsense-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.tmp | 6 |
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/"); } |