Commit ea880fb5 authored by Franco Fichtner's avatar Franco Fichtner

filter: argument is never false

parent afad392e
...@@ -156,8 +156,7 @@ function filter_delete_states_for_down_gateways() { ...@@ -156,8 +156,7 @@ function filter_delete_states_for_down_gateways() {
} }
} }
/* reload filter sync */ function filter_configure_sync()
function filter_configure_sync($delete_states_if_needed = true)
{ {
global $config, $g, $after_filter_configure_run; global $config, $g, $after_filter_configure_run;
global $time_based_rules, $filterdns, $aliases; global $time_based_rules, $filterdns, $aliases;
...@@ -375,10 +374,8 @@ function filter_configure_sync($delete_states_if_needed = true) ...@@ -375,10 +374,8 @@ function filter_configure_sync($delete_states_if_needed = true)
echo "."; echo ".";
} }
if($delete_states_if_needed) {
update_filter_reload_status(gettext("Processing down interface states")); update_filter_reload_status(gettext("Processing down interface states"));
filter_delete_states_for_down_gateways(); filter_delete_states_for_down_gateways();
}
update_filter_reload_status(gettext("Done")); update_filter_reload_status(gettext("Done"));
if(file_exists("/var/run/booting")) { if(file_exists("/var/run/booting")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment