MDL-55964 report_competency: Missing blocks in Competency breakdown

Fix also the breadcrumb.
This commit is contained in:
Serge Gauthier 2016-09-28 13:15:49 -04:00
parent 0344082208
commit ceee6e9bd8

View File

@ -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');