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:
markjcrane
2016-05-26 11:21:37 -06:00
parent db697b8342
commit c92606353e
5 changed files with 65 additions and 67 deletions

View File

@@ -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;
}
}