MDL-77810 gradereport_summary: show localised plugin name in report.

This commit is contained in:
Paul Holden 2023-04-03 10:09:21 +01:00
parent 4901ffe1ba
commit 569a71daea
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164

View File

@ -157,7 +157,8 @@ class grade_items extends base {
$html = \html_writer::start_div('page-context-header' . $dimmed);
// Image data.
$html .= \html_writer::div($imagedata, 'page-header-image mr-2');
$prefix = \html_writer::div($row->itemmodule, 'text-muted text-uppercase small line-height-3');
$prefix = \html_writer::div(get_string('pluginname', "mod_{$row->itemmodule}"),
'text-muted text-uppercase small line-height-3');
$name = $prefix . \html_writer::link($url, format_string($cm->name, true));
$html .= \html_writer::tag('div', $name, ['class' => 'page-header-headings']);
} else {