Replace event_socket_mkdir with php mkdir. (#6170)

This commit is contained in:
FusionPBX
2021-12-02 19:03:55 -07:00
committed by GitHub
parent a5e249db02
commit dd106a6871
11 changed files with 34 additions and 24 deletions
@@ -436,7 +436,7 @@ if (!class_exists('extension')) {
$xml .= " </user>\n";
if (!is_readable($_SESSION['switch']['extensions']['dir']."/".$row['user_context'])) {
event_socket_mkdir($_SESSION['switch']['extensions']['dir']."/".$row['user_context']);
mkdir($_SESSION['switch']['extensions']['dir']."/".$row['user_context'], 0770, false);
}
if (strlen($extension) > 0) {
$fout = fopen($_SESSION['switch']['extensions']['dir']."/".$row['user_context']."/v_".$extension.".xml","w");
@@ -810,4 +810,4 @@ if (!class_exists('extension')) {
}
}
?>
?>