mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-55964 report_competency: Missing blocks in Competency breakdown
Fix also the breadcrumb.
This commit is contained in:
parent
0344082208
commit
ceee6e9bd8
@ -51,13 +51,17 @@ if (empty($currentuser)) {
|
||||
}
|
||||
}
|
||||
|
||||
$urlparams = array('id' => $id, 'user' => $currentuser);
|
||||
|
||||
$urlparams = array('id' => $id);
|
||||
$navurl = new moodle_url('/report/competency/index.php', $urlparams);
|
||||
$urlparams['user'] = $currentuser;
|
||||
$url = new moodle_url('/report/competency/index.php', $urlparams);
|
||||
|
||||
$title = get_string('pluginname', 'report_competency');
|
||||
$coursename = format_string($course->fullname, true, array('context' => $context));
|
||||
|
||||
$PAGE->navigation->override_active_url($navurl);
|
||||
$PAGE->set_url($url);
|
||||
$PAGE->set_title($title);
|
||||
$coursename = format_text($course->fullname, false, array('context' => $context));
|
||||
$PAGE->set_heading($coursename);
|
||||
$PAGE->set_pagelayout('incourse');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user