MDL-49973 changed continue to delete on delete confirmations
Conflicts: course/editsection.php
This commit is contained in:
committed by
Cameron Ball
parent
e494078a27
commit
1237ba1962
+5
-1
@@ -78,8 +78,12 @@
|
||||
echo $OUTPUT->header();
|
||||
$fullname = fullname($user, true);
|
||||
echo $OUTPUT->heading(get_string('deleteuser', 'admin'));
|
||||
|
||||
$optionsyes = array('delete'=>$delete, 'confirm'=>md5($delete), 'sesskey'=>sesskey());
|
||||
echo $OUTPUT->confirm(get_string('deletecheckfull', '', "'$fullname'"), new moodle_url($returnurl, $optionsyes), $returnurl);
|
||||
$deleteurl = new moodle_url($returnurl, $optionsyes);
|
||||
$deletebutton = new single_button($deleteurl, get_string('delete'), 'post');
|
||||
|
||||
echo $OUTPUT->confirm(get_string('deletecheckfull', '', "'$fullname'"), $deletebutton, $returnurl);
|
||||
echo $OUTPUT->footer();
|
||||
die;
|
||||
} else if (data_submitted() and !$user->deleted) {
|
||||
|
||||
Reference in New Issue
Block a user