1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-27 16:23:19 +01:00

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

View File

@ -229,7 +229,7 @@ class EmailNotification extends PHPMailer implements NotificationInterface
{
$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']);
}
/**