Skip to content

Commit af4c7ab

Browse files
author
Marius Cramer
committed
- ported some patches
1 parent b418037 commit af4c7ab

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

interface/lib/classes/remote.d/sites.inc.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ public function sites_web_domain_get($session_id, $primary_id)
405405
return false;
406406
}
407407
$app->uses('remoting_lib');
408-
$app->remoting_lib->loadFormDef('../sites/form/web_domain.tform.php');
408+
$app->remoting_lib->loadFormDef('../sites/form/web_vhost_domain.tform.php');
409409
return $app->remoting_lib->getDataRecord($primary_id);
410410
}
411411

@@ -434,7 +434,7 @@ public function sites_web_domain_add($session_id, $client_id, $params, $readonly
434434
if($params['pm_min_spare_servers'] == '') $params['pm_min_spare_servers'] = 1;
435435
if($params['pm_max_spare_servers'] == '') $params['pm_max_spare_servers'] = 1;
436436

437-
$domain_id = $this->insertQuery('../sites/form/web_domain.tform.php', $client_id, $params, 'sites:web_domain:on_after_insert');
437+
$domain_id = $this->insertQuery('../sites/form/web_vhost_domain.tform.php', $client_id, $params, 'sites:web_domain:on_after_insert');
438438
if ($readonly === true)
439439
$app->db->query("UPDATE web_domain SET `sys_userid` = '1' WHERE domain_id = ?", $domain_id);
440440
return $domain_id;
@@ -454,7 +454,7 @@ public function sites_web_domain_update($session_id, $client_id, $primary_id, $p
454454
if($params['pm_min_spare_servers'] == '') $params['pm_min_spare_servers'] = 1;
455455
if($params['pm_max_spare_servers'] == '') $params['pm_max_spare_servers'] = 1;
456456

457-
$affected_rows = $this->updateQuery('../sites/form/web_domain.tform.php', $client_id, $primary_id, $params);
457+
$affected_rows = $this->updateQuery('../sites/form/web_vhost_domain.tform.php', $client_id, $primary_id, $params);
458458
return $affected_rows;
459459
}
460460

@@ -465,7 +465,7 @@ public function sites_web_domain_delete($session_id, $primary_id)
465465
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
466466
return false;
467467
}
468-
$affected_rows = $this->deleteQuery('../sites/form/web_domain.tform.php', $primary_id);
468+
$affected_rows = $this->deleteQuery('../sites/form/web_vhost_domain.tform.php', $primary_id);
469469
return $affected_rows;
470470
}
471471

@@ -864,11 +864,11 @@ public function sites_web_domain_set_status($session_id, $primary_id, $status) {
864864
} else {
865865
$status = 'n';
866866
}
867-
$app->remoting_lib->loadFormDef('../sites/form/web_domain.tform.php');
867+
$app->remoting_lib->loadFormDef('../sites/form/web_vhost_domain.tform.php');
868868
$params = $app->remoting_lib->getDataRecord($primary_id);
869869
$params['active'] = $status;
870870

871-
$affected_rows = $this->updateQuery('../sites/form/web_domain.tform.php', 0, $primary_id, $params);
871+
$affected_rows = $this->updateQuery('../sites/form/web_vhost_domain.tform.php', 0, $primary_id, $params);
872872
return $affected_rows;
873873
} else {
874874
throw new SoapFault('status_undefined', 'The status is not available');

interface/lib/classes/remoting.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ protected function updateQueryPrepare($formdef_file, $client_id, $primary_id, $p
340340

341341
//* Get the SQL query
342342
$sql = $app->remoting_lib->getSQL($params, 'UPDATE', $primary_id);
343+
343344
// throw new SoapFault('debug', $sql);
344345
if($app->remoting_lib->errorMessage != '') {
345346
throw new SoapFault('data_processing_error', $app->remoting_lib->errorMessage);

0 commit comments

Comments
 (0)