diff options
author | Phil Davis <phil.davis@inf.org> | 2015-07-04 00:20:29 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-07-04 00:20:29 +0545 |
commit | 6135a11fd9c433f9de495cfddf0d84ea97f73d89 (patch) | |
tree | a63fb6c91b2957676a41df78e3c1772d07e7064a /usr/local/www | |
parent | 9195a8378002ed41b459eb8c53a208f5fc6f8d4c (diff) | |
download | pfsense-6135a11fd9c433f9de495cfddf0d84ea97f73d89.zip pfsense-6135a11fd9c433f9de495cfddf0d84ea97f73d89.tar.gz |
Fix put static route destination in config change description
When enabling or disabling a route by using the enable/disable button on the Routes page, the destination network was not being put in the config change description, although the code intended it to be there.
This fixes it.
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/system_routes.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_routes.php b/usr/local/www/system_routes.php index a001444..4d44557 100644 --- a/usr/local/www/system_routes.php +++ b/usr/local/www/system_routes.php @@ -144,11 +144,11 @@ if (isset($_POST['del_x'])) { if ($a_routes[$_GET['id']]) { if (isset($a_routes[$_GET['id']]['disabled'])) { unset($a_routes[$_GET['id']]['disabled']); - $changedesc = $changedesc_prefix . gettext("enabled route to") . " " . $a_routes[$id]['network']; + $changedesc = $changedesc_prefix . gettext("enabled route to") . " " . $a_routes[$_GET['id']]['network']; } else { delete_static_route($_GET['id']); $a_routes[$_GET['id']]['disabled'] = true; - $changedesc = $changedesc_prefix . gettext("disabled route to") . " " . $a_routes[$id]['network']; + $changedesc = $changedesc_prefix . gettext("disabled route to") . " " . $a_routes[$_GET['id']]['network']; } if (write_config($changedesc)) { |