Closed (fixed)
Project:
Media Mover
Version:
6.x-1.0-alpha4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2009 at 19:20 UTC
Updated:
28 Feb 2009 at 00:30 UTC
I'm gettting some nasty errors when media mover tries to email me about a job being stuck. Here's a quick solution
line 737:
drupal_mail_send(array('id' => 'media_mover_api_job_running', 'to' => variable_get('mma_cron_notify_email', null), 'subject' => $subject, 'body' => drupal_wrap_mail(t($message, $params))));
line 827:
drupal_mail_send(array('id' => 'media_mover_api_job_running',
'to' => $configuration->settings->mma_cron_notify_email ?
$configuration->settings->mma_cron_notify_email :
variable_get('mma_cron_notify_email', null),
'subject' => $subject, 'body' => drupal_wrap_mail($message)));
Comments
Comment #1
John Hodgins commentedRewriting that code to only send the notification once would be nice too; i'll try to make a patch soon...
Comment #2
arthurf commentedThis was a super old function that I had not paid attention to. I updated this to use the $configuration settings so you can have per configuration settings. Also back ported to D5