Marius Cramer
2015-05-04 d35b34d03ffe0d92cbaeb4410c913550150fab4e
interface/web/sites/web_vhost_domain_edit.php
@@ -693,6 +693,10 @@
            $domain_select .= "<option value=''></option>\r\n";
         }
         $app->tpl->setVar("domain_option", $domain_select);
      } else {
         // remove the parent domain part of the domain name before we show it in the text field.
         if($this->dataRecord["type"] == 'vhostsubdomain') $this->dataRecord["domain"] = str_replace('.'.$parent_domain["domain"], '', $this->dataRecord["domain"]);
      }
      if($this->_vhostdomain_type != 'domain') $app->tpl->setVar("domain", $this->dataRecord["domain"]);
@@ -719,6 +723,10 @@
         if(is_array($tmp_client) && !empty($tmp_client) && trim($this->dataRecord['ssl_organisation']) == '' && trim($this->dataRecord['ssl_locality']) == '' && trim($this->dataRecord['ssl_state']) == '' && trim($this->dataRecord['ssl_organisation_unit']) == '') $app->tpl->setVar("show_helper_links", true);
      }
      $sys_config = $app->getconf->get_global_config('misc');
      if($sys_config['use_combobox'] == 'y') {
         $app->tpl->setVar('use_combobox', 'y');
      }
      parent::onShowEnd();
   }