MDL-46139 Grades: Show the aggregation method in the alt text for the icon.
authorDamyon Wiese <damyon@moodle.com>
Mon, 11 Aug 2014 03:32:53 +0000 (11:32 +0800)
committerAdrian Greeve <adrian@moodle.com>
Fri, 3 Oct 2014 05:47:42 +0000 (13:47 +0800)
grade/lib.php

index 95c68a9..83fb46b 100644 (file)
@@ -1184,6 +1184,9 @@ class grade_structure {
                             case GRADE_AGGREGATE_SUM:
                                 return '<img src="'.$OUTPUT->pix_url('i/agg_sum') . '" ' .
                                         'class="icon itemicon" title="'.s($stragg).'" alt="'.s($stragg).'"/>';
+                            default:
+                                return '<img src="'.$OUTPUT->pix_url('i/calc') . '" ' .
+                                        'class="icon itemicon" title="'.s($stragg).'" alt="'.s($stragg).'"/>';
                         }
                     }