Merge branch 'wip-MDL-41809-31' of git://github.com/marinaglancy/moodle into MOODLE_31_STABLE
This commit is contained in:
@@ -1393,7 +1393,8 @@ class grade_item extends grade_object {
|
||||
public function get_name($fulltotal=false) {
|
||||
if (strval($this->itemname) !== '') {
|
||||
// MDL-10557
|
||||
return format_string($this->itemname);
|
||||
$options = ['context' => context_course::instance($this->courseid)];
|
||||
return format_string($this->itemname, true, $options);
|
||||
|
||||
} else if ($this->is_course_item()) {
|
||||
return get_string('coursetotal', 'grades');
|
||||
|
||||
Reference in New Issue
Block a user