mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-77014 course: Single activity format course title multilang.
This commit is contained in:
parent
9ee4f8db8b
commit
d70ed83644
2 changed files with 11 additions and 1 deletions
|
@ -157,7 +157,7 @@ class core_renderer extends \core_renderer {
|
|||
$prefix = null;
|
||||
if ($context->contextlevel == CONTEXT_MODULE) {
|
||||
if ($this->page->course->format === 'singleactivity') {
|
||||
$heading = $this->page->course->fullname;
|
||||
$heading = format_string($this->page->course->fullname, true, ['context' => $context]);
|
||||
} else {
|
||||
$heading = $this->page->cm->get_formatted_name();
|
||||
$imagedata = html_writer::img($this->page->cm->get_icon_url()->out(false), '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue