mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Remove save_module_xml() function and move it it into the modules class as the xml method. Eventual goal move everything out of switch.php.
This commit is contained in:
@@ -34,15 +34,13 @@
|
||||
|
||||
//use the module class to get the list of modules from the db and add any missing modules
|
||||
if (isset($_SESSION['switch']['mod']['dir'])) {
|
||||
$mod = new modules;
|
||||
$mod->db = $db;
|
||||
$mod->dir = $_SESSION['switch']['mod']['dir'];
|
||||
$mod->get_modules();
|
||||
$mod->synch();
|
||||
$msg = $mod->msg;
|
||||
|
||||
//save the modules.conf
|
||||
save_module_xml();
|
||||
$module = new modules;
|
||||
$module->db = $db;
|
||||
$module->dir = $_SESSION['switch']['mod']['dir'];
|
||||
$module->get_modules();
|
||||
$module->synch();
|
||||
$module->xml();
|
||||
$msg = $module->msg;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user