summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-07-04 00:20:29 +0545
committerPhil Davis <phil.davis@inf.org>2015-07-04 00:20:29 +0545
commit6135a11fd9c433f9de495cfddf0d84ea97f73d89 (patch)
treea63fb6c91b2957676a41df78e3c1772d07e7064a /usr/local
parent9195a8378002ed41b459eb8c53a208f5fc6f8d4c (diff)
downloadpfsense-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')
-rw-r--r--usr/local/www/system_routes.php4
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)) {
OpenPOWER on IntegriCloud