From 157ed1d1e5f34bdaa9d33caf4af81028b4955c27 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Fri, 24 Aug 2007 04:55:54 +0000 Subject: [PATCH] links gradeitems to activities --- grade/report/user/lib.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/grade/report/user/lib.php b/grade/report/user/lib.php index ce6af7a9d1..e3367ad660 100644 --- a/grade/report/user/lib.php +++ b/grade/report/user/lib.php @@ -116,24 +116,13 @@ class grade_report_user extends grade_report { $grade_grade = new grade_grade(array('itemid'=>$grade_item->id, 'userid'=>$this->user->id)); $grade_text = $grade_grade->load_text(); - /// prints mod icon if available - if ($grade_item->itemtype == 'mod') { - $iconpath = $CFG->dirroot.'/mod/'.$grade_item->itemmodule.'/icon.gif'; - $icon = $CFG->wwwroot.'/mod/'.$grade_item->itemmodule.'/icon.gif'; - if (file_exists($iconpath)) { - $data[] = ''.$grade_item->itemname.''; - } - } else { - $data[] = ''; - } - // TODO: indicate items that "needsupdate" - missing final calculation /// prints grade item name if ($grade_item->is_course_item() or $grade_item->is_category_item()) { $data[] = ''.$grade_item->get_name().''; } else { - $data[] = $grade_item->get_name(); + $data[] = $this->get_module_link($grade_item->get_name(), $grade_item->itemmodule, $grade_item->iteminstance);; } /// prints the grade -- 2.39.5