Skip to content

Commit

Permalink
Merge pull request #181 from golenkovm/issue180
Browse files Browse the repository at this point in the history
Apply format_string on the breadcrumb navigation
  • Loading branch information
jleyva authored Oct 3, 2024
2 parents 17091f9 + c781918 commit 0ad1baa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viewreport.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@
if ($hasmanageallcap || ($hasmanageowncap && $report->ownerid == $USER->id)) {
$managereporturl = new moodle_url('/blocks/configurable_reports/managereport.php', ['courseid' => $report->courseid]);
$PAGE->navbar->add(get_string('managereports', 'block_configurable_reports'), $managereporturl);
$PAGE->navbar->add($report->name);
$PAGE->navbar->add($reportname);
} else {
// These users don't have the capability to manage reports but we still want them to see some breadcrumbs.
$PAGE->navbar->add(get_string('viewreport', 'block_configurable_reports'));
$PAGE->navbar->add($report->name);
$PAGE->navbar->add($reportname);
}

$PAGE->set_title($reportname);
Expand Down

0 comments on commit 0ad1baa

Please sign in to comment.