From 0b9711d7c9a1030df27e75f7fc727bf80f032b9f Mon Sep 17 00:00:00 2001 From: Malishev Dmitry Date: Mon, 5 Sep 2011 19:09:15 +0300 Subject: [PATCH] WEB_DOMAIN syntax error fixed --- web/vesta/api/WEB_DOMAIN.class.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/web/vesta/api/WEB_DOMAIN.class.php b/web/vesta/api/WEB_DOMAIN.class.php index 4a176bb8..8b5fdbf9 100644 --- a/web/vesta/api/WEB_DOMAIN.class.php +++ b/web/vesta/api/WEB_DOMAIN.class.php @@ -134,19 +134,20 @@ class WEB_DOMAIN extends AjaxHandler 'SSL_CERT' => $_s['SSL_CERT'] ); - if ($_s['SSL_HOME']) { - $params['SSL_HOME'] = $_s['SSL_HOME']; - } + if ($_s['SSL_HOME']) { + $params['SSL_HOME'] = $_s['SSL_HOME']; + } - if ($_s['SSL_TEXT']) { - // TODO: implement - } + if ($_s['SSL_TEXT']) { + // TODO: implement + } - $result = 0; - $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_SSL, $params); + $result = 0; + $result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_SSL, $params); - if (!$result['status']) { - $this->errors['SSL'] = array($result['error_code'] => $result['error_message']); + if (!$result['status']) { + $this->errors['SSL'] = array($result['error_code'] => $result['error_message']); + } } } @@ -164,7 +165,7 @@ class WEB_DOMAIN extends AjaxHandler $result = $dns->addExecute($params); if (!$result['status']) { $this->errors['DNS_DOMAIN'] = array($result['error_code'] => $result['error_message']); - } + } } /*