mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
I got the permissions wrong (#1616)
it should have been in octal mod (leading 0) also updated the fax application as it needs the stickygid too
This commit is contained in:
@@ -386,7 +386,7 @@ if (!class_exists('xml_cdr')) {
|
||||
catch(PDOException $e) {
|
||||
$tmp_dir = $_SESSION['switch']['log']['dir'].'/xml_cdr/failed/';
|
||||
if(!file_exists($tmp_dir)) {
|
||||
mkdir($tmp_dir, 2777, true);
|
||||
mkdir($tmp_dir, 02770, true);
|
||||
}
|
||||
if ($_SESSION['cdr']['format']['text'] == "xml") {
|
||||
$tmp_file = $uuid.'.xml';
|
||||
@@ -413,7 +413,7 @@ if (!class_exists('xml_cdr')) {
|
||||
$tmp_day = date("d", $tmp_time);
|
||||
$tmp_dir = $_SESSION['switch']['log']['dir'].'/xml_cdr/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day;
|
||||
if(!file_exists($tmp_dir)) {
|
||||
mkdir($tmp_dir, 2777, true);
|
||||
mkdir($tmp_dir, 02770, true);
|
||||
}
|
||||
if ($_SESSION['cdr']['format']['text'] == "xml") {
|
||||
$tmp_file = $uuid.'.xml';
|
||||
|
||||
Reference in New Issue
Block a user