mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-08 04:33:49 +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:
@@ -89,18 +89,18 @@ if($fp){
|
||||
}
|
||||
|
||||
//use the module class to get the list of modules from the db and add any missing modules
|
||||
$mod = new modules;
|
||||
$mod->db = $db;
|
||||
$mod->dir = $_SESSION['switch']['mod']['dir'];
|
||||
$mod->get_modules();
|
||||
$result = $mod->modules;
|
||||
$module = new modules;
|
||||
$module->db = $db;
|
||||
$module->dir = $_SESSION['switch']['mod']['dir'];
|
||||
$module->get_modules();
|
||||
$result = $module->modules;
|
||||
$module_count = count($result);
|
||||
$mod->synch();
|
||||
$msg = $mod->msg;
|
||||
$module->synch();
|
||||
$module->xml();
|
||||
$msg = $module->msg;
|
||||
|
||||
//show the msg
|
||||
if ($msg) {
|
||||
save_module_xml();
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='40%'>\n";
|
||||
echo "<tr>\n";
|
||||
|
||||
Reference in New Issue
Block a user