Set the correct value for params arrays in MessageManager::send_message - refs #8089

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent 09d334c862
commit 896f3fb1f5
  1. 4
      main/auth/inscription.php
  2. 2
      main/forum/forumfunction.inc.php
  3. 8
      main/inc/lib/message.lib.php
  4. 4
      main/social/group_topics.php
  5. 4
      main/survey/survey.lib.php

@ -607,8 +607,8 @@ if ($form->validate()) {
$admin_info['user_id'], $admin_info['user_id'],
$emailsubject, $emailsubject,
$emailbody, $emailbody,
null, [],
null, [],
null, null,
null, null,
null, null,

@ -3925,7 +3925,7 @@ function send_mail($user_info = array(), $thread_information = array())
$email_body .= get_lang('ThreadCanBeFoundHere')." : <br /><a href=\"".$thread_link."\">".$thread_link."</a>\n"; $email_body .= get_lang('ThreadCanBeFoundHere')." : <br /><a href=\"".$thread_link."\">".$thread_link."</a>\n";
if ($user_info['user_id'] <> $user_id) { if ($user_info['user_id'] <> $user_id) {
MessageManager::send_message($user_info['user_id'], $subject, $email_body, null, null, null, null, null, null, $user_id); MessageManager::send_message($user_info['user_id'], $subject, $email_body, [], [], null, null, null, null, $user_id);
} }
} }

@ -196,8 +196,8 @@ class MessageManager
$receiver_user_id, $receiver_user_id,
$subject, $subject,
$content, $content,
$file_attachments = array(), array $file_attachments = [],
$file_comments = array(), array $file_comments = [],
$group_id = 0, $group_id = 0,
$parent_id = 0, $parent_id = 0,
$edit_message_id = 0, $edit_message_id = 0,
@ -408,8 +408,8 @@ class MessageManager
$receiver_user_id, $receiver_user_id,
$subject, $subject,
$message, $message,
null, [],
null, [],
null, null,
null, null,
null, null,

@ -70,7 +70,7 @@ if (isset($_POST['action'])) {
$title, $title,
$content, $content,
$_FILES, $_FILES,
'', [],
$group_id, $group_id,
$parent_id, $parent_id,
$edit_message_id, $edit_message_id,
@ -86,7 +86,7 @@ if (isset($_POST['action'])) {
$title, $title,
$content, $content,
$_FILES, $_FILES,
'', [],
$group_id, $group_id,
$parent_id, $parent_id,
0, 0,

@ -3922,8 +3922,8 @@ class SurveyUtil
$invitedUser, $invitedUser,
$invitation_title, $invitation_title,
$full_invitation_text, $full_invitation_text,
null, [],
null, [],
null, null,
null, null,
null, null,

Loading…
Cancel
Save