Fix nomi allegati secondari in invio mail

This commit is contained in:
loviuz 2021-06-03 10:49:39 +02:00
parent 992227d838
commit 4742b360a0
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ class EmailNotification extends PHPMailer implements NotificationInterface
{ {
$attachment = database()->fetchOne('SELECT * FROM zz_files WHERE id = '.prepare($file_id)); $attachment = database()->fetchOne('SELECT * FROM zz_files WHERE id = '.prepare($file_id));
$this->addAttachment(base_dir().'/'.Uploads::getDirectory($attachment['id_module'], $attachment['id_plugin']).'/'.$attachment['filename']); $this->addAttachment(base_dir().'/'.Uploads::getDirectory($attachment['id_module'], $attachment['id_plugin']).'/'.$attachment['filename'], $attachment['original']);
} }
/** /**