This commit is contained in:
ldestailleur
2025-08-24 22:05:46 +02:00
parent e3953f684b
commit 381c6fbecf

View File

@@ -270,11 +270,11 @@ class CMailFile
// This convert an embedd file with src="/viewimage.php?modulepart... into a cid link
// TODO Exclude viewimage used for the read tracker ?
$dolibarr_main_data_root_images=$dolibarr_main_data_root;
if ((int)$conf->entity!==1) {
if ((int) $conf->entity !== 1) {
$dolibarr_main_data_root_images.='/'.$conf->entity.'/';
}
$findimg = $this->findHtmlImages($dolibarr_main_data_root_images.'/medias');
if ($findimg<0) {
if ($findimg < 0) {
dol_syslog("CMailFile::CMailfile: Error on findHtmlImages");
$this->error = 'ErrorInAddAttachementsImageBaseOnMedia';
return;