message MDL-24444 made bulk user messaging work by fixing up some incomplete refactoring

This commit is contained in:
Andrew Davis
2010-10-13 02:38:23 +00:00
parent 85ed0647ed
commit b6138cd59c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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;