mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
If the extension or dialplan xml directories are disabled or don't exist don't add sub directories.
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
*/
|
||||
|
||||
//if the extensions dir doesn't exist then create it
|
||||
if (!is_dir($_SESSION['switch']['extensions']['dir'])) { mkdir($_SESSION['switch']['extensions']['dir'],0777,true); }
|
||||
if (strlen($_SESSION['switch']['extensions']['dir']) > 0) {
|
||||
if (!is_dir($_SESSION['switch']['extensions']['dir'])) { mkdir($_SESSION['switch']['extensions']['dir'],0777,true); }
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user