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
+3
-2
@@ -76,11 +76,12 @@ $strdeletecoursecheck = get_string("deletecoursecheck");
|
||||
$message = "{$strdeletecoursecheck}<br /><br />{$coursefullname} ({$courseshortname})";
|
||||
|
||||
$continueurl = new moodle_url('/course/delete.php', array('id' => $course->id, 'delete' => md5($course->timemodified)));
|
||||
$continuebutton = new single_button($continueurl, get_string('delete'), 'post');
|
||||
|
||||
$PAGE->navbar->add($strdeletecheck);
|
||||
$PAGE->set_title("$SITE->shortname: $strdeletecheck");
|
||||
$PAGE->set_heading($SITE->fullname);
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->confirm($message, $continueurl, $categoryurl);
|
||||
echo $OUTPUT->confirm($message, $continuebutton, $categoryurl);
|
||||
echo $OUTPUT->footer();
|
||||
exit;
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user