Merge branch 'MDL-80079-403' of https://github.com/andrewnicols/moodle into MOODLE_403_STABLE
This commit is contained in:
@@ -349,7 +349,11 @@ class core_course_list_element implements IteratorAggregate {
|
||||
* @return string
|
||||
*/
|
||||
public function get_formatted_name() {
|
||||
return format_string(get_course_display_name_for_list($this), true, $this->get_context());
|
||||
return format_string(
|
||||
get_course_display_name_for_list($this),
|
||||
true,
|
||||
['context' => $this->get_context()],
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -357,7 +361,11 @@ class core_course_list_element implements IteratorAggregate {
|
||||
* @return string
|
||||
*/
|
||||
public function get_formatted_fullname() {
|
||||
return format_string($this->__get('fullname'), true, $this->get_context());
|
||||
return format_string(
|
||||
$this->__get('fullname'),
|
||||
true,
|
||||
['context' => $this->get_context()],
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -365,7 +373,11 @@ class core_course_list_element implements IteratorAggregate {
|
||||
* @return string
|
||||
*/
|
||||
public function get_formatted_shortname() {
|
||||
return format_string($this->__get('shortname'), true, $this->get_context());
|
||||
return format_string(
|
||||
$this->__get('shortname'),
|
||||
true,
|
||||
['context' => $this->get_context()],
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user