QUAL Update inc.php (#29822)
Adaptation of detect_dolibarr_main_data_root to handle more cases, especially when servers don't have htdocs Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
b91858863b
commit
46435ceb44
1 changed files with 1 additions and 2 deletions
|
|
@ -726,8 +726,7 @@ function detect_dolibarr_main_document_root()
|
|||
*/
|
||||
function detect_dolibarr_main_data_root($dolibarr_main_document_root)
|
||||
{
|
||||
$dolibarr_main_data_root = preg_replace("/\/htdocs$/", "", $dolibarr_main_document_root);
|
||||
$dolibarr_main_data_root .= "/documents";
|
||||
$dolibarr_main_data_root = preg_replace("/\/[^\/]+$/", "/documents", $dolibarr_main_document_root);
|
||||
return $dolibarr_main_data_root;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue