diff --git a/app/call_flows/call_flow_delete.php b/app/call_flows/call_flow_delete.php
index 7cf32d7285..e0511d1e89 100644
--- a/app/call_flows/call_flow_delete.php
+++ b/app/call_flows/call_flow_delete.php
@@ -92,13 +92,9 @@ if (strlen($id)>0) {
}
}
-//redirect the user
- require_once "resources/header.php";
- echo "\n";
- echo "
\n";
- echo $text['message-delete']."\n";
- echo "
\n";
- require_once "resources/footer.php";
- return;
+
+$_SESSION["message"] = $text['message-delete'];
+header("Location: call_flows.php");
+return;
?>
\ No newline at end of file
diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php
index 5745bda0d9..914382a189 100644
--- a/app/call_flows/call_flow_edit.php
+++ b/app/call_flows/call_flow_edit.php
@@ -352,19 +352,14 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
}
- //redirect the browser
- require_once "resources/header.php";
- echo "\n";
- echo "\n";
- if ($action == "add") {
- echo $text['message-add']."\n";
- }
- if ($action == "update") {
- echo $text['message-update']."\n";
- }
- echo "
\n";
- require_once "resources/footer.php";
- return;
+ if ($action == "add") {
+ $_SESSION["message"] = $text['message-add'];
+ }
+ if ($action == "update") {
+ $_SESSION["message"] = $text['message-update'];
+ }
+ header("Location: call_flows.php");
+ return;
}
} //if ($_POST["persistformvar"] != "true")
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)