From 61dfb8310066a5e96d06b34f195c0e59b2a9302a Mon Sep 17 00:00:00 2001 From: alban Date: Fri, 4 Jul 2014 16:33:14 +0200 Subject: [PATCH] =?UTF-8?q?[fix]=C2=A0Diagnostic:Dns=20for=20<=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Alternc/Diagnostic/Service/Dns.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Alternc/Diagnostic/Service/Dns.php b/lib/Alternc/Diagnostic/Service/Dns.php index a6cefd53..5982afaf 100644 --- a/lib/Alternc/Diagnostic/Service/Dns.php +++ b/lib/Alternc/Diagnostic/Service/Dns.php @@ -29,11 +29,13 @@ class Alternc_Diagnostic_Service_Dns /** @var m_dom */ global $dom; - $this->bind = new system_bind(); $version = $this->service->version; if( $version < 3 ) { + $this->bind = new system_bind(array( + "zone_file_directory" => "/var/alternc/bind/zones/")); $this->domainList = $this->get_domain_all_summary(); }else{ + $this->bind = new system_bind(); $this->domainList = $dom->get_domain_all_summary(); }