Project

General

Profile

Bug #14949 » 5eb325e0def04241684b4d2c9583f8ca9d8bc05e.patch

Jim Pingle, 11/09/2023 05:04 PM

View differences:

src/usr/local/www/interfaces.php
103 103
$is_vlan = (bool) interface_is_vlan($realifname);
104 104
$is_parent = !$is_vlan;
105 105

  
106
init_config_arr(array('interfaces', $if));
107
$wancfg = &$config['interfaces'][$if];
108
$old_wancfg = $wancfg;
109
$old_wancfg['realif'] = get_real_interface($if);
110
$old_ppps = $a_ppps;
111

  
112 106
// Populate page descr if it does not exist.
113 107
if ((strtolower($if) == "wan") &&
114 108
    empty(array_get_path($wancfg, 'descr'))) {
......
1768 1762
			}
1769 1763
		}
1770 1764

  
1765
		config_set_path('ppps/ppp', $a_ppps);
1766
		config_set_path('gateways/gateway_item', $a_gateways);
1767
		config_set_path("interfaces/{$if}", $wancfg);
1771 1768
		write_config("Interfaces settings changed");
1772 1769

  
1773 1770
		if ($_POST['gatewayip4']) {
(3-3/3)