Display the form to send email for subscription to session- refs #7275

1.9.x
Angel Fernando Quiroz Campos 10 years ago
parent de8c099e3f
commit ffc9fef8b9
  1. 4
      main/inc/email_editor.php
  2. 4
      main/template/default/auth/courses_categories.php

@ -43,8 +43,8 @@ $form->addElement('button', 'submit', get_lang('SendMail'));
$defaults = array( 'dest' => Security::remove_XSS($_REQUEST['dest']),
'email_address' => Security::remove_XSS($_REQUEST['dest']),
'email_title' => Security::remove_XSS($_POST['email_title']),
'email_text' => Security::remove_XSS($_POST['email_text'])
'email_title' => Security::remove_XSS($_REQUEST['email_title']),
'email_text' => Security::remove_XSS($_REQUEST['email_text'])
);
$form->setDefaults($defaults);

@ -483,8 +483,8 @@ function displayRegisterInSessionButton($sessionName)
$mailMessage.= get_lang('TheInformationOfMyAccountIs') . ':' . PHP_EOL;
$mailParams = http_build_query(array(
'subject' => $mailSubject,
'message' => $mailMessage
'email_title' => $mailSubject,
'email_text' => $mailMessage
));
return Display::tag('a', get_lang('Subscribe'), array(

Loading…
Cancel
Save