diff options
author | Phil Davis <phil.davis@inf.org> | 2015-07-04 00:20:29 +0545 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-07-03 15:47:41 -0300 |
commit | a61daab9ba90d21854698bb2e94c53153d23c611 (patch) | |
tree | 13defaf94af5cea9058c35b7a3150ccb2f570cc2 | |
parent | 49683954aa5e3bc95423ada63c56bb474a1c6119 (diff) | |
download | pfsense-a61daab9ba90d21854698bb2e94c53153d23c611.zip pfsense-a61daab9ba90d21854698bb2e94c53153d23c611.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.
-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 2e037cd..c4e4fdd 100644 --- a/usr/local/www/system_routes.php +++ b/usr/local/www/system_routes.php @@ -138,11 +138,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)) |