mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 18:53: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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user