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

@@ -59,8 +59,8 @@
unset($sql, $modules, $index, $row);
//use the module class to get the list of modules from the db and add any missing modules
if (isset($_SESSION['switch']['mod']['dir'])) {
$module->dir = $_SESSION['switch']['mod']['dir'];
if (!empty($setting->get('switch','mod'))) {
$module->dir = $setting->get('switch','mod');
$module->get_modules();
$module->synch();
$module->xml();