From 7942a469e81a5da9ac9919c0c5b03d4a7327c8ff Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 24 Jan 2007 23:09:03 +0000 Subject: Do not use fancy php pointers, leading to the whipeout of carpsettings xml entries on secondary hosts --- packages/tinydns/tinydns_xmlrpc_sync.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packages/tinydns') diff --git a/packages/tinydns/tinydns_xmlrpc_sync.php b/packages/tinydns/tinydns_xmlrpc_sync.php index 08e80e24..a1471fcc 100644 --- a/packages/tinydns/tinydns_xmlrpc_sync.php +++ b/packages/tinydns/tinydns_xmlrpc_sync.php @@ -52,8 +52,10 @@ function tinydns_do_xmlrpc_sync() { if(!$config['installedpackages']['carpsettings']['config'][0]['synchronizetoip']) return; + $sync_to_ip = $config['installedpackages']['carpsettings']['config'][0]['synchronizetoip']; + log_error("[tinydns] tinydns_xmlrpc_sync.php is starting."); - $xmlrpc_sync_neighbor = $carp['synchronizetoip']; + $xmlrpc_sync_neighbor = $sync_to_ip; if($config['system']['webgui']['protocol'] != "") { $synchronizetoip = $config['system']['webgui']['protocol']; $synchronizetoip .= "://"; @@ -67,7 +69,7 @@ function tinydns_do_xmlrpc_sync() { $port = "443"; } } - $synchronizetoip .= $carp['synchronizetoip']; + $synchronizetoip .= $sync_to_ip; /* xml will hold the sections to sync */ $xml = array(); -- cgit v1.2.3