[fix] Diagnostic:Dns for < 3

This commit is contained in:
alban 2014-07-04 16:33:14 +02:00
parent 9c4c68b6eb
commit 61dfb83100
1 changed files with 3 additions and 1 deletions

View File

@ -29,11 +29,13 @@ class Alternc_Diagnostic_Service_Dns
/** @var m_dom */ /** @var m_dom */
global $dom; global $dom;
$this->bind = new system_bind();
$version = $this->service->version; $version = $this->service->version;
if( $version < 3 ) { if( $version < 3 ) {
$this->bind = new system_bind(array(
"zone_file_directory" => "/var/alternc/bind/zones/"));
$this->domainList = $this->get_domain_all_summary(); $this->domainList = $this->get_domain_all_summary();
}else{ }else{
$this->bind = new system_bind();
$this->domainList = $dom->get_domain_all_summary(); $this->domainList = $dom->get_domain_all_summary();
} }