diff options
Diffstat (limited to 'usr/local/www/system_routes.php')
-rwxr-xr-x | usr/local/www/system_routes.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/usr/local/www/system_routes.php b/usr/local/www/system_routes.php index c563d5e..cea51b9 100755 --- a/usr/local/www/system_routes.php +++ b/usr/local/www/system_routes.php @@ -64,11 +64,8 @@ if ($_POST) { setup_gateways_monitor(); $savemsg = get_std_save_message($retval); - if ($retval == 0) { - if (file_exists($d_staticroutesdirty_path)) { - unlink($d_staticroutesdirty_path); - } - } + if ($retval == 0) + clear_subsystem_dirty('staticroutes'); } else { if ($_POST['enablefastrouting'] == "") { /* Only update config if something changed */ @@ -93,7 +90,7 @@ if ($_GET['act'] == "del") { $changedesc .= "removed route to " . $a_routes[$_GET['id']['route']]; unset($a_routes[$_GET['id']]); write_config($changedesc); - touch($d_staticroutesdirty_path); + mark_subsystem_dirty('staticroutes'); header("Location: system_routes.php"); exit; } @@ -109,7 +106,7 @@ include("head.inc"); <form action="system_routes.php" method="post"> <input type="hidden" name="y1" value="1"> <?php if ($savemsg) print_info_box($savemsg); ?> -<?php if (file_exists($d_staticroutesdirty_path)): ?><p> +<?php if (is_subsystem_dirty('staticroutes')): ?><p> <?php print_info_box_np("The static route configuration has been changed.<br>You must apply the changes in order for them to take effect.");?><br> <?php endif; ?> |