diff options
author | Sashi20 | 2019-05-21 12:46:15 +0530 |
---|---|---|
committer | Sashi20 | 2019-05-21 12:46:15 +0530 |
commit | 39195e8d05e2d8850a518b9995361c053fbbe87a (patch) | |
tree | 77f8fd31bda950b337a7336f932e0d3e81a5a332 | |
parent | 649b0243c573d6b1acd4f1d623755d52ea6c0e57 (diff) | |
download | openmodelica_textbook_companion-39195e8d05e2d8850a518b9995361c053fbbe87a.tar.gz openmodelica_textbook_companion-39195e8d05e2d8850a518b9995361c053fbbe87a.tar.bz2 openmodelica_textbook_companion-39195e8d05e2d8850a518b9995361c053fbbe87a.zip |
Modify header param to params
-rwxr-xr-x | manage_proposal.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/manage_proposal.inc b/manage_proposal.inc index fdbde04..210d329 100755 --- a/manage_proposal.inc +++ b/manage_proposal.inc @@ -810,12 +810,13 @@ function proposal_status_form_submit($form, &$form_state) $num_updated = $query->execute(); /* sending email */ $book_user = user_load($proposal_data->uid); + $email_to = $book_user->mail; $from = variable_get('textbook_companion_from_email', ''); $bcc = variable_get('textbook_companion_emails', ''); $cc = variable_get('textbook_companion_cc_emails', ''); $params['all_code_submitted_status_changed']['proposal_id'] = $proposal_id; $params['all_code_submitted_status_changed']['user_id'] = $proposal_data->uid; - $param['all_code_submitted_status_changed']['headers'] = array( + $params['all_code_submitted_status_changed']['headers'] = array( 'From' => $from, 'MIME-Version' => '1.0', 'Content-Type' => 'text/plain; charset=UTF-8; format=flowed; delsp=yes', @@ -824,8 +825,6 @@ function proposal_status_form_submit($form, &$form_state) 'Cc' => $cc, 'Bcc' => $bcc ); - - $email_to = $book_user->mail; if (!drupal_mail('textbook_companion', 'all_code_submitted_status_changed', $email_to, language_default(), $params, variable_get('textbook_companion_from_email', NULL), TRUE)) drupal_set_message('Error sending email message.', 'error'); drupal_set_message('User has been notified of that code submission interface is now available .', 'status'); |