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 8784787531
commit 7fff69f791
5 changed files with 65 additions and 67 deletions

View File

@@ -114,7 +114,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$db->exec(check_sql($sql));
unset($sql);
save_module_xml();
$module new modules;;
$module->xml();
$_SESSION["message"] = $text['message-add'];
header("Location: modules.php");
@@ -134,7 +135,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$db->exec(check_sql($sql));
unset($sql);
save_module_xml();
$module new modules;;
$module->xml();
$_SESSION["message"] = $text['message-update'];
header("Location: modules.php");