From fbfa48fa0154d9d77b01f7925120dcf0e47ba061 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 24 Jan 2007 23:32:44 +0000 Subject: Use pfsense.merge_config_section --- packages/tinydns/tinydns_xmlrpc_sync.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'packages') 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}."); -- cgit v1.2.3