Merge pull request #24580 from randallmoraes/patch-13
Enable modify file to send by hook.
This commit is contained in:
commit
a76cad9668
@ -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
|
$reshook = $hookmanager->executeHooks('formatNotificationMessage', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||||
if (empty($reshook)) {
|
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'])) {
|
if (!empty($hookmanager->resArray['subject'])) {
|
||||||
$subject .= $hookmanager->resArray['subject'];
|
$subject .= $hookmanager->resArray['subject'];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user