aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-16 05:43:09 +0000
committerBill Marquette <billm@pfsense.org>2005-03-16 05:43:09 +0000
commit0cb0207da40121c327e0da6e798adfda393bcd7f (patch)
treea0b2c0c9899d8eb8977fef6164597d60d1e7c129 /packages
parent5e134b9edab5a2b529705db9d905d5c106eb9717 (diff)
downloadpfsense-packages-0cb0207da40121c327e0da6e798adfda393bcd7f.tar.gz
pfsense-packages-0cb0207da40121c327e0da6e798adfda393bcd7f.tar.bz2
pfsense-packages-0cb0207da40121c327e0da6e798adfda393bcd7f.zip
shaper should sync now
make the if() actually work and remove bogus foreach that was probably intended to do something else
Diffstat (limited to 'packages')
-rw-r--r--packages/carp_sync_server.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/carp_sync_server.php b/packages/carp_sync_server.php
index 84c5fc82..8fd3e883 100644
--- a/packages/carp_sync_server.php
+++ b/packages/carp_sync_server.php
@@ -34,12 +34,11 @@ require_once("config.inc");
require_once("xmlparse_pkg.inc");
require_once("filter.inc");
-if($config['installedpackages']['carpsettings']['config'] != "")
- foreach($config['installedpackages']['carpsettings']['config'] as $carp)
+if($config['installedpackages']['carpsettings']['config'] != "") {
$rules = return_filename_as_string("{$g['tmp_path']}/rules_section.txt");
$aliases = return_filename_as_string("{$g['tmp_path']}/aliases_section.txt");
$nat = return_filename_as_string("{$g['tmp_path']}/nat_section.txt");
- $trafficshaper = return_filename_as_string("{$g['tmp_path']}/trafficshaper_section.txt");
+ $trafficshaper = return_filename_as_string("{$g['tmp_path']}/shaper_section.txt");
if($rules <> "") {
restore_config_section("filter", $rules);
unlink("{$g['tmp_path']}/filter_section.txt");
@@ -57,5 +56,6 @@ if($config['installedpackages']['carpsettings']['config'] != "")
unlink("{$g['tmp_path']}/shaper_section.txt");
}
filter_configure();
+}
-?> \ No newline at end of file
+?>