diff options
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 2 | ||||
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 4357677..68af9a3 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2351,7 +2351,7 @@ function carp_sync_client() { } if($carp['synchronizecarp'] != "" and is_array($config['virtualip'])) { - $sections_xml[] = new XML_RPC_Value(backup_vip_config_section("virtualip"), 'string'); + $sections_xml[] = new XML_RPC_Value(backup_vip_config_section(), 'string'); $sections[] = new XML_RPC_Value('virtualip', 'string'); } diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 98dfb0a..ae1fe69 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -720,7 +720,7 @@ function backup_config_section($section) { * backup_config_section($section): returns as an xml file string of * the configuration section */ -function backup_vip_config_section($section) { +function backup_vip_config_section() { global $config; $new_section = &$config['virtualip']; foreach($new_section as $section) { @@ -729,7 +729,7 @@ function backup_vip_config_section($section) { } } /* generate configuration XML */ - $xmlconfig = dump_xml_config($new_section, $section); + $xmlconfig = dump_xml_config($new_section, "virtualip"); $xmlconfig = str_replace("<?xml version=\"1.0\"?>", "", $xmlconfig); return $xmlconfig; } |