message MDL-24444 made bulk user messaging work by fixing up some incomplete refactoring
This commit is contained in:
@@ -45,7 +45,7 @@ if ($confirm and confirm_sesskey()) {
|
||||
$usernames = implode(', ', $userlist);
|
||||
echo $OUTPUT->heading(get_string('confirmation', 'admin'));
|
||||
$formcontinue = new single_button(new moodle_url('user_bulk_confirm.php', array('confirm' => 1)), get_string('yes'));
|
||||
$formcancel = new single_button('user_bulk.php', get_string('no'), 'get');
|
||||
$formcancel = new single_button(new moodle_url('user_bulk.php'), get_string('no'), 'get');
|
||||
echo $OUTPUT->confirm(get_string('confirmcheckfull', '', $usernames), $formcontinue, $formcancel);
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ if ($msgform->is_cancelled()) {
|
||||
echo $OUTPUT->box($msg, 'boxwidthnarrow boxaligncenter generalbox', 'preview'); //TODO: clean once we start using proper text formats here
|
||||
|
||||
$formcontinue = new single_button(new moodle_url('user_bulk_message.php', array('confirm' => 1, 'msg' => $msg)), get_string('yes')); //TODO: clean once we start using proper text formats here
|
||||
$formcancel = new single_button('user_bulk.php', get_string('no'), 'get');
|
||||
$formcancel = new single_button(new moodle_url('user_bulk.php'), get_string('no'), 'get');
|
||||
echo $OUTPUT->confirm(get_string('confirmmessage', 'bulkusers', $usernames), $formcontinue, $formcancel);
|
||||
echo $OUTPUT->footer();
|
||||
die;
|
||||
|
||||
Reference in New Issue
Block a user