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

View File

@@ -964,7 +964,9 @@ if (!function_exists('save_sip_profile_xml')) {
// make profile dir if needed
$profile_dir = $_SESSION['switch']['conf']['dir']."/sip_profiles";
if (!is_readable($profile_dir)) { event_socket_mkdir($profile_dir); }
if (!is_readable($profile_dir)) {
mkdir($profile_dir, 0770, false);
}
//get the sip profiles from the database
$sql = "select * from v_sip_profiles";
@@ -1021,7 +1023,9 @@ if (!function_exists('save_sip_profile_xml')) {
}
//if the directory does not exist then create it
if (!is_readable($profile_dir.'/'.$sip_profile_name)) { event_socket_mkdir($profile_dir.'/'.$sip_profile_name); }
if (!is_readable($profile_dir.'/'.$sip_profile_name)) {
mkdir($profile_dir.'/'.$sip_profile_name, 0770, false);
}
}
unset($result, $row);