Skip to content

Commit 0b9711d

Browse files
committed
WEB_DOMAIN syntax error fixed
1 parent 809d0a2 commit 0b9711d

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

web/vesta/api/WEB_DOMAIN.class.php

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,19 +134,20 @@ public function addExecute(Request $request)
134134
'SSL_CERT' => $_s['SSL_CERT']
135135
);
136136

137-
if ($_s['SSL_HOME']) {
138-
$params['SSL_HOME'] = $_s['SSL_HOME'];
139-
}
137+
if ($_s['SSL_HOME']) {
138+
$params['SSL_HOME'] = $_s['SSL_HOME'];
139+
}
140140

141-
if ($_s['SSL_TEXT']) {
142-
// TODO: implement
143-
}
141+
if ($_s['SSL_TEXT']) {
142+
// TODO: implement
143+
}
144144

145-
$result = 0;
146-
$result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_SSL, $params);
145+
$result = 0;
146+
$result = Vesta::execute(Vesta::V_ADD_WEB_DOMAIN_SSL, $params);
147147

148-
if (!$result['status']) {
149-
$this->errors['SSL'] = array($result['error_code'] => $result['error_message']);
148+
if (!$result['status']) {
149+
$this->errors['SSL'] = array($result['error_code'] => $result['error_message']);
150+
}
150151
}
151152
}
152153

@@ -164,7 +165,7 @@ public function addExecute(Request $request)
164165
$result = $dns->addExecute($params);
165166
if (!$result['status']) {
166167
$this->errors['DNS_DOMAIN'] = array($result['error_code'] => $result['error_message']);
167-
}
168+
}
168169
}
169170

170171
/*

0 commit comments

Comments
 (0)