Skip to content

Commit ee180c8

Browse files
committed
Document root of the website is not replaced anymore on updates when the user or group changes.
1 parent 565785a commit ee180c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

interface/web/sites/web_domain_edit.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,10 @@ function onAfterUpdate() {
334334
// Set the values for document_root, system_user and system_group
335335
$system_user = 'web'.$this->id;
336336
$system_group = 'client'.$client_id;
337-
$document_root = str_replace("[client_id]",$client_id,$document_root);
337+
//$document_root = str_replace("[client_id]",$client_id,$document_root);
338338

339-
$sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group', document_root = '$document_root' WHERE domain_id = ".$this->id;
339+
// $sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group', document_root = '$document_root' WHERE domain_id = ".$this->id;
340+
$sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group' WHERE domain_id = ".$this->id;
340341
$app->db->query($sql);
341342
}
342343

0 commit comments

Comments
 (0)