mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 02:46:30 +00:00
Remove the call to the save_ivr_menu_xml function.
This commit is contained in:
@@ -169,9 +169,6 @@ else {
|
||||
unset($sql);
|
||||
}
|
||||
|
||||
//synchronize the xml config
|
||||
save_ivr_menu_xml();
|
||||
|
||||
//redirect the user
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menus.php\">\n";
|
||||
|
||||
@@ -39,7 +39,6 @@ if (count($_GET)>0) {
|
||||
}
|
||||
|
||||
if (strlen($id)>0) {
|
||||
|
||||
//include the ivr menu class
|
||||
require_once "includes/classes/database.php";
|
||||
require_once "resources/classes/switch_ivr_menu.php";
|
||||
@@ -48,9 +47,6 @@ if (strlen($id)>0) {
|
||||
$ivr->ivr_menu_uuid = $id;
|
||||
$ivr->delete();
|
||||
|
||||
//synchronize the xml config
|
||||
save_ivr_menu_xml();
|
||||
|
||||
//synchronize the xml config
|
||||
save_dialplan_xml();
|
||||
}
|
||||
|
||||
@@ -206,6 +206,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
//run the add method in the ivr menu class
|
||||
$ivr->add();
|
||||
|
||||
//synchronize the xml config
|
||||
save_dialplan_xml();
|
||||
|
||||
//redirect the user
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menus.php\">\n";
|
||||
|
||||
@@ -49,9 +49,6 @@ else {
|
||||
$ivr->domain_uuid = $_SESSION["domain_uuid"];
|
||||
$ivr->ivr_menu_option_uuid = $id;
|
||||
$ivr->delete();
|
||||
|
||||
//synchronize the xml config
|
||||
save_ivr_menu_xml();
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
|
||||
@@ -113,36 +113,34 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$ivr->ivr_menu_option_description = $ivr_menu_option_description;
|
||||
|
||||
if ($action == "add" && permission_exists('ivr_menu_add')) {
|
||||
$ivr_menu_option_uuid = uuid();
|
||||
$ivr->ivr_menu_option_uuid = $ivr_menu_option_uuid;
|
||||
$ivr->add();
|
||||
//run the add method in the ivr menu class
|
||||
$ivr_menu_option_uuid = uuid();
|
||||
$ivr->ivr_menu_option_uuid = $ivr_menu_option_uuid;
|
||||
$ivr->add();
|
||||
|
||||
//synchronize the xml config
|
||||
save_ivr_menu_xml();
|
||||
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menu_edit.php?id=$ivr_menu_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Add Complete\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
//redirect the user
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menu_edit.php?id=$ivr_menu_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Add Complete\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
} //if ($action == "add")
|
||||
|
||||
if ($action == "update" && permission_exists('ivr_menu_edit')) {
|
||||
$ivr->ivr_menu_option_uuid = $ivr_menu_option_uuid;
|
||||
$ivr->update();
|
||||
//run the update method in the ivr menu class
|
||||
$ivr->ivr_menu_option_uuid = $ivr_menu_option_uuid;
|
||||
$ivr->update();
|
||||
|
||||
//synchronize the xml config
|
||||
save_ivr_menu_xml();
|
||||
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menu_edit.php?id=$ivr_menu_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Update Complete\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
//redirect the user
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=ivr_menu_edit.php?id=$ivr_menu_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Update Complete\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
} //if ($action == "update")
|
||||
} //if ($_POST["persistformvar"] != "true")
|
||||
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
|
||||
|
||||
Reference in New Issue
Block a user