more docker ipv6 fixes from ronald

This commit is contained in:
Eric Schultz
2017-05-16 11:03:10 -05:00
parent b2dc300fb0
commit b18f0f8e5d
3 changed files with 178 additions and 142 deletions

View File

@@ -326,12 +326,10 @@ class DockerTemplates {
if (!$tmp['icon'] || $reload) {
$icon = $this->getIcon($image);
$tmp['icon'] = ($icon) ? $icon : null;
}
if (!$tmp['url'] || $reload) {
$WebUI = $this->getControlURL($name);
$tmp['url'] = ($WebUI) ? $WebUI : null;
$tmp['icon'] = $icon ?: null;
}
$WebUI = $this->getControlURL($name);
$tmp['url'] = $WebUI ?: null;
$Registry = $this->getTemplateValue($image, "Registry");
$tmp['registry'] = ($Registry) ? $Registry : null;