Code comment
This commit is contained in:
parent
bac598965e
commit
3d4879c538
@ -698,10 +698,12 @@ abstract class CommonObject
|
||||
}
|
||||
else return '';
|
||||
}
|
||||
|
||||
// Define $urlwithroot
|
||||
$urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT,'/').'$/i','',trim($dolibarr_main_url_root));
|
||||
$urlwithroot=$urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain name found into config file
|
||||
// This is to use external domain name found into config file
|
||||
//if (DOL_URL_ROOT && ! preg_match('/\/$/', $urlwithouturlroot) && ! preg_match('/^\//', DOL_URL_ROOT)) $urlwithroot=$urlwithouturlroot.'/'.DOL_URL_ROOT;
|
||||
//else
|
||||
$urlwithroot=$urlwithouturlroot.DOL_URL_ROOT;
|
||||
//$urlwithroot=DOL_MAIN_URL_ROOT; // This is to use same domain name than current
|
||||
|
||||
$forcedownload=0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user