From a0a83fca12003cb5960281be71e6b79d0c287b23 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 28 Mar 2005 18:22:17 +0000 Subject: [PATCH] Don't display the Uncategorised VARIABLE in the header --- grade/lib.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/grade/lib.php b/grade/lib.php index 383509e5cf5..f34bc60a77c 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -1925,6 +1925,11 @@ function grade_view_all_grades($view_by_student) { if ($category != 'student_data') { if ($first == 0) { $colcount++; + if ($category == UNCATEGORISED) { + $categoryname = get_string(UNCATEGORISED, 'grades'); + } else { + $categoryname = $category; + } // only print the category headers if something is displayed for them if ($preferences->show_weighted || $preferences->show_percent || $preferences->show_points) { $stats_link = ''.get_string('statslink','grades').''; @@ -1932,7 +1937,7 @@ function grade_view_all_grades($view_by_student) { if ($view_by_student != -1) { $header .= '&student='.$view_by_student; } - $header .='">'. $category .' '.$stats_link.''; + $header .='">'. $categoryname .' '.$stats_link.''; } if ($preferences->display_weighted != 0) { $header .= '('. $all_categories[$category]['stats']['weight'] . '%)';