From c7819181b1cbb7cbde18e1686128b141df778006 Mon Sep 17 00:00:00 2001 From: Mikhail Golenkov Date: Wed, 28 Apr 2021 18:40:30 +1000 Subject: [PATCH] Apply format_string on the breadcrumb navigation --- viewreport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viewreport.php b/viewreport.php index e4f1a665..3415d88b 100755 --- a/viewreport.php +++ b/viewreport.php @@ -88,11 +88,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);