mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-74049' of https://github.com/Chocolate-lightning/moodle
This commit is contained in:
commit
d5ade9c68c
7 changed files with 7 additions and 1 deletions
|
@ -60,7 +60,6 @@ if ($cmid !== null) {
|
|||
}
|
||||
$PAGE->set_url($url);
|
||||
$PAGE->set_pagelayout('admin');
|
||||
|
||||
$id = $courseid;
|
||||
$cm = null;
|
||||
$course = $DB->get_record('course', array('id'=>$courseid), '*', MUST_EXIST);
|
||||
|
@ -83,6 +82,7 @@ switch ($type) {
|
|||
case backup::TYPE_1COURSE :
|
||||
require_capability('moodle/backup:backupcourse', $coursecontext);
|
||||
$heading = get_string('backupcourse', 'backup', $course->shortname);
|
||||
$PAGE->set_secondary_active_tab('coursereuse');
|
||||
break;
|
||||
case backup::TYPE_1SECTION :
|
||||
require_capability('moodle/backup:backupsection', $coursecontext);
|
||||
|
|
|
@ -60,6 +60,7 @@ if ($context->contextlevel == CONTEXT_COURSECAT) {
|
|||
} else if ($context->contextlevel == CONTEXT_COURSE) {
|
||||
$course = get_course($context->instanceid);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->set_secondary_active_tab('coursereuse');
|
||||
} else {
|
||||
$PAGE->set_heading($SITE->fullname);
|
||||
}
|
||||
|
|
|
@ -57,6 +57,7 @@ $PAGE->set_url($url);
|
|||
$PAGE->set_pagelayout('admin');
|
||||
$PAGE->set_title($title);
|
||||
$PAGE->set_heading($heading);
|
||||
$PAGE->set_secondary_active_tab('coursereuse');
|
||||
|
||||
// Get data ready for mform.
|
||||
$mform = new \core_backup\output\copy_form(
|
||||
|
|
|
@ -46,6 +46,7 @@ $PAGE->set_url($url);
|
|||
$PAGE->set_pagelayout('admin');
|
||||
$PAGE->set_title($title);
|
||||
$PAGE->set_heading($title);
|
||||
$PAGE->set_secondary_active_tab('coursereuse');
|
||||
$PAGE->requires->js_call_amd('core_backup/async_backup', 'asyncCopyAllStatus');
|
||||
|
||||
// Build the page output.
|
||||
|
|
|
@ -48,6 +48,7 @@ navigation_node::override_active_url(new moodle_url('/backup/restorefile.php', a
|
|||
$PAGE->set_url(new moodle_url('/backup/restore.php', array('contextid'=>$contextid)));
|
||||
$PAGE->set_context($context);
|
||||
$PAGE->set_pagelayout('admin');
|
||||
$PAGE->set_secondary_active_tab('coursereuse');
|
||||
|
||||
require_login($course, null, $cm);
|
||||
require_capability('moodle/restore:restorecourse', $context);
|
||||
|
|
|
@ -61,6 +61,7 @@ switch ($context->contextlevel) {
|
|||
case CONTEXT_COURSE:
|
||||
$course = get_course($context->instanceid);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->set_secondary_active_tab('coursereuse');
|
||||
break;
|
||||
default:
|
||||
$PAGE->set_heading($SITE->fullname);
|
||||
|
|
|
@ -48,6 +48,7 @@ $strremove = get_string('remove');
|
|||
|
||||
$PAGE->set_title($course->fullname.': '.$strresetcourse);
|
||||
$PAGE->set_heading($course->fullname.': '.$strresetcourse);
|
||||
$PAGE->set_secondary_active_tab('coursereuse');
|
||||
|
||||
$mform = new course_reset_form();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue