[fix] Diagnostic:Dns for < 3
This commit is contained in:
parent
9c4c68b6eb
commit
61dfb83100
|
@ -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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue