FIX trackid and temp dir on payment confirmation of event registration

This commit is contained in:
Laurent Destailleur
2024-03-18 20:02:08 +01:00
parent 0b8d6dfae6
commit a0b7cb90d8
2 changed files with 16 additions and 8 deletions

View File

@@ -1901,9 +1901,15 @@ class CMailFile
*/
private function findHtmlImagesIsSrcData($images_dir)
{
global $conf;
// Build the array of image extensions
$extensions = array_keys($this->image_types);
if (empty($images_dir)) {
$images_dir = $conf->admin->dir_output.'/temp/'.uniqid('cmailfile');
}
if ($images_dir && !dol_is_dir($images_dir)) {
dol_mkdir($images_dir, DOL_DATA_ROOT);
}