mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
Merge branch 'MDL-51411' of https://github.com/andrewhancox/moodle
This commit is contained in:
commit
c8d8a09369
@ -106,7 +106,8 @@ if (!empty($add)) {
|
||||
$optionsyes = array('confirm'=>1, 'delete'=>$cm->id, 'sesskey'=>sesskey(), 'sr' => $sectionreturn);
|
||||
|
||||
$strdeletecheck = get_string('deletecheck', '', $fullmodulename);
|
||||
$strdeletecheckfull = get_string('deletecheckfull', '', "$fullmodulename '$cm->name'");
|
||||
$strparams = (object)array('type' => $fullmodulename, 'name' => $cm->name);
|
||||
$strdeletechecktypename = get_string('deletechecktypename', '', $strparams);
|
||||
|
||||
$PAGE->set_pagetype('mod-' . $cm->modname . '-delete');
|
||||
$PAGE->set_title($strdeletecheck);
|
||||
@ -117,7 +118,7 @@ if (!empty($add)) {
|
||||
echo $OUTPUT->box_start('noticebox');
|
||||
$formcontinue = new single_button(new moodle_url("$CFG->wwwroot/course/mod.php", $optionsyes), get_string('yes'));
|
||||
$formcancel = new single_button($return, get_string('no'), 'get');
|
||||
echo $OUTPUT->confirm($strdeletecheckfull, $formcontinue, $formcancel);
|
||||
echo $OUTPUT->confirm($strdeletechecktypename, $formcontinue, $formcancel);
|
||||
echo $OUTPUT->box_end();
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user