Use settings class for app_defaults.php

This commit is contained in:
FusionPBX
2023-09-16 00:22:12 -06:00
committed by GitHub
parent 81b92075a9
commit c6d966395e
17 changed files with 44 additions and 228 deletions

View File

@@ -28,9 +28,9 @@
if ($domains_processed == 1) {
//create the directory
if (!empty($_SESSION['switch']['extensions']['dir'])) {
if (!is_dir($_SESSION['switch']['extensions']['dir'])) {
mkdir($_SESSION['switch']['extensions']['dir'], 0770, false);
if (!empty($setting->get('switch','extensions'))) {
if (!is_dir($setting->get('switch','extensions'))) {
mkdir($setting->get('switch','extensions'), 0770, false);
}
}