MDL-63435 gradebook: let activity icons re-appear.
authorLuca Bösch <luca.boesch@bfh.ch>
Wed, 26 Sep 2018 12:15:59 +0000 (14:15 +0200)
committerLuca Bösch <luca.boesch@bfh.ch>
Thu, 27 Sep 2018 16:12:08 +0000 (18:12 +0200)
grade/edit/tree/lib.php

index fe7c132..86cf33e 100644 (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;