aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns/tinydns_xmlrpc_sync.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-24 23:32:44 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-24 23:32:44 +0000
commitfbfa48fa0154d9d77b01f7925120dcf0e47ba061 (patch)
tree28772121a904b8f71f10a8c5897cd3b1f5d2f13c /packages/tinydns/tinydns_xmlrpc_sync.php
parent7942a469e81a5da9ac9919c0c5b03d4a7327c8ff (diff)
downloadpfsense-packages-fbfa48fa0154d9d77b01f7925120dcf0e47ba061.tar.gz
pfsense-packages-fbfa48fa0154d9d77b01f7925120dcf0e47ba061.tar.bz2
pfsense-packages-fbfa48fa0154d9d77b01f7925120dcf0e47ba061.zip
Use pfsense.merge_config_section
Diffstat (limited to 'packages/tinydns/tinydns_xmlrpc_sync.php')
-rw-r--r--packages/tinydns/tinydns_xmlrpc_sync.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/tinydns/tinydns_xmlrpc_sync.php b/packages/tinydns/tinydns_xmlrpc_sync.php
index a1471fcc..22b3406c 100644
--- a/packages/tinydns/tinydns_xmlrpc_sync.php
+++ b/packages/tinydns/tinydns_xmlrpc_sync.php
@@ -73,8 +73,10 @@ function tinydns_do_xmlrpc_sync() {
/* xml will hold the sections to sync */
$xml = array();
- $xml['installedpackages']['tinydns'] = &$config['installedpackages']['tinydns'];
- $xml['installedpackages']['tinydnsdomains'] = &$config['installedpackages']['tinydnsdomains'];
+ $xml['installedpackages']['tinydns'] = $config['installedpackages']['tinydns'];
+ $xml['installedpackages']['tinydnsdomains'] = $config['installedpackages']['tinydnsdomains'];
+
+ print_r($xml);
/* assemble xmlrpc payload */
$params = array(
@@ -84,7 +86,7 @@ function tinydns_do_xmlrpc_sync() {
/* set a few variables needed for sync code borrowed from filter.inc */
$url = $synchronizetoip;
- $method = 'pfsense.restore_config_section';
+ $method = 'pfsense.merge_config_section';
/* Sync! */
log_error("Beginning tinydns XMLRPC sync to {$url}:{$port}.");