From 232e50525cfef2f2bbac0890788b77461c79de66 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 29 Nov 2012 22:22:23 +0000 Subject: [PATCH] Remove the call to the save_ivr_menu_xml function. --- app/ivr_menu/ivr_menu_edit.php | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/app/ivr_menu/ivr_menu_edit.php b/app/ivr_menu/ivr_menu_edit.php index 6947d72449..3fa806a4f7 100644 --- a/app/ivr_menu/ivr_menu_edit.php +++ b/app/ivr_menu/ivr_menu_edit.php @@ -203,13 +203,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //add the data if ($action == "add" && permission_exists('ivr_menu_add')) { - $ivr->add(); - - //synchronize the xml config - save_ivr_menu_xml(); - - //synchronize the xml config - save_dialplan_xml(); + //run the add method in the ivr menu class + $ivr->add(); //redirect the user require_once "includes/header.php"; @@ -222,14 +217,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { } //update the data if ($action == "update" && permission_exists('ivr_menu_edit')) { - $ivr->ivr_menu_uuid = $ivr_menu_uuid; - $ivr->update(); - - //synchronize the xml config - save_ivr_menu_xml(); - - //synchronize the xml config - save_dialplan_xml(); + //run the update method in the ivr menu class + $ivr->ivr_menu_uuid = $ivr_menu_uuid; + $ivr->update(); //redirect the user require_once "includes/header.php";