Merge branch 'MDL-63435-master' of https://github.com/lucaboesch/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2018-10-02 23:47:52 +02:00
+1 -3
View File
@@ -113,10 +113,8 @@ class grade_edit_tree {
$object = $element['object'];
$eid = $element['eid'];
$object->name = format_string($this->gtree->get_element_header($element, true, true, true, true, true),
false, array("context" => context_course::instance($COURSE->id)));
$object->name = $this->gtree->get_element_header($element, true, true, true, true, true);
$object->stripped_name = $this->gtree->get_element_header($element, false, false, false);
$is_category_item = false;
if ($element['type'] == 'categoryitem' || $element['type'] == 'courseitem') {
$is_category_item = true;