mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-03 10:23:50 +00:00
Make sure provisioning temporal directory exists (#2386)
Same rationale as 4.2
This commit is contained in:
committed by
FusionPBX
parent
e45a0f80d2
commit
bb7dba8570
@@ -1078,6 +1078,7 @@ include "root.php";
|
||||
$file_contents = $this->render();
|
||||
|
||||
//write the file
|
||||
mkdir($directory,0777,true);
|
||||
$fh = fopen($dest_path,"w") or die("Unable to write to $directory for provisioning. Make sure the path exists and permissons are set correctly.");
|
||||
fwrite($fh, $file_contents);
|
||||
fclose($fh);
|
||||
|
||||
Reference in New Issue
Block a user