Routing, gateways. ditch return_gateways_array() usage in system_gateway_groups.php, system_gateway_groups_edit.php for https://github.com/opnsense/core/issues/2279

This commit is contained in:
Ad Schellevis 2019-04-11 13:21:15 +02:00
parent 65facfb695
commit a7ddcb6e3c
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ require_once("rrd.inc");
$a_gateway_groups = &config_read_array('gateways', 'gateway_group');
$gateways_status = return_gateways_status();
$a_gateways = return_gateways_array();
$a_gateways = (new \OPNsense\Routing\Gateways(legacy_interfaces_details()))->gatewaysIndexedByName();
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (isset($_POST['act']) && $_POST['act'] == "del" ) {

View File

@ -32,7 +32,7 @@ require_once("services.inc");
require_once("interfaces.inc");
$a_gateway_groups = &config_read_array('gateways', 'gateway_group');
$a_gateways = return_gateways_array();
$a_gateways = (new \OPNsense\Routing\Gateways(legacy_interfaces_details()))->gatewaysIndexedByName();
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (isset($_GET['id']) && isset($a_gateway_groups[$_GET['id']])) {