Enable modify file to send by hook.

Enable modify file to send by hook.
This commit is contained in:
Randall Mora 2023-04-24 07:40:59 -06:00 committed by GitHub
parent 6cb1424824
commit c6143bcf3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -634,6 +634,11 @@ class Notify
$reshook = $hookmanager->executeHooks('formatNotificationMessage', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
if (empty($reshook)) {
if (!empty($hookmanager->resArray['files'])) {
$filename_list = $hookmanager->resArray['files']['file'];
$mimetype_list = $hookmanager->resArray['files']['mimefile'];
$mimefilename_list = $hookmanager->resArray['files']['filename'];
}
if (!empty($hookmanager->resArray['subject'])) {
$subject .= $hookmanager->resArray['subject'];
}