Commit ee180c88 authored by tbrehm's avatar tbrehm
Browse files

Document root of the website is not replaced anymore on updates when the user or group changes.

parent 565785a9
...@@ -334,9 +334,10 @@ class page_action extends tform_actions { ...@@ -334,9 +334,10 @@ class page_action extends tform_actions {
// Set the values for document_root, system_user and system_group // Set the values for document_root, system_user and system_group
$system_user = 'web'.$this->id; $system_user = 'web'.$this->id;
$system_group = 'client'.$client_id; $system_group = 'client'.$client_id;
$document_root = str_replace("[client_id]",$client_id,$document_root); //$document_root = str_replace("[client_id]",$client_id,$document_root);
$sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group', document_root = '$document_root' WHERE domain_id = ".$this->id; // $sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group', document_root = '$document_root' WHERE domain_id = ".$this->id;
$sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group' WHERE domain_id = ".$this->id;
$app->db->query($sql); $app->db->query($sql);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment