From de145400dd60b977abc9392e02957a923cfd6eac Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 18 Apr 2017 09:02:29 +0545 Subject: Remove obsolete isAjax array key handling --- src/usr/local/www/system_gateways_edit.php | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/usr/local') diff --git a/src/usr/local/www/system_gateways_edit.php b/src/usr/local/www/system_gateways_edit.php index 895e7af..5067274 100644 --- a/src/usr/local/www/system_gateways_edit.php +++ b/src/usr/local/www/system_gateways_edit.php @@ -98,24 +98,9 @@ if ($_POST['save']) { if (count($input_errors) == 0) { save_gateway($_POST, $realid); - - if ($_REQUEST['isAjax']) { - echo $_POST['name']; - exit; - } - header("Location: system_gateways.php"); exit; } else { - if ($_REQUEST['isAjax']) { - header("HTTP/1.0 500 Internal Server Error"); - header("Content-type: text/plain"); - foreach ($input_errors as $error) { - echo("$error\n"); - } - exit; - } - $pconfig = $_POST; if (empty($_POST['friendlyiface'])) { $pconfig['friendlyiface'] = $_POST['interface']; -- cgit v1.1