MDL-49949 grader: Using method to determine item name

This commit is contained in:
Martin Mastny 2015-05-13 08:36:41 +08:00
parent b5dbb126f9
commit 1be1c66a9b

View File

@ -844,7 +844,7 @@ class grade_report_grader extends grade_report {
'itemid' => $element['object']->id));
$singleview = $OUTPUT->action_icon(
$url,
new pix_icon('t/editstring', get_string('singleview', 'grades', $element['object']->itemname))
new pix_icon('t/editstring', get_string('singleview', 'grades', $element['object']->get_name()))
);
}