Commit 3de838dd authored by Till Brehm's avatar Till Brehm
Browse files

- Improved IP address loop.

parent 8555470d
......@@ -670,7 +670,7 @@ class installer_dist extends installer_base {
}
}
$tpl->setLoop('ip_adresses',$ip_addresses);
if(count($ip_addresses) > 0) $tpl->setLoop('ip_adresses',$ip_addresses);
wf($vhost_conf_dir.'/ispconfig.conf', $tpl->grab());
unset($tpl);
......
......@@ -535,7 +535,7 @@ class installer extends installer_base
}
}
$tpl->setLoop('ip_adresses',$ip_addresses);
if(count($ip_addresses) > 0) $tpl->setLoop('ip_adresses',$ip_addresses);
wf($conf['apache']['vhost_conf_dir'].'/000-ispconfig.conf', $tpl->grab());
unset($tpl);
......
......@@ -685,7 +685,7 @@ class installer_dist extends installer_base {
}
}
$tpl->setLoop('ip_adresses',$ip_addresses);
if(count($ip_addresses) > 0) $tpl->setLoop('ip_adresses',$ip_addresses);
wf($vhost_conf_dir.'/ispconfig.conf', $tpl->grab());
unset($tpl);
......
......@@ -1276,7 +1276,7 @@ class installer_base {
}
}
$tpl->setLoop('ip_adresses',$ip_addresses);
if(count($ip_addresses) > 0) $tpl->setLoop('ip_adresses',$ip_addresses);
wf($vhost_conf_dir.'/ispconfig.conf', $tpl->grab());
unset($tpl);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment