]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed reports using the new scales (numerical etc)
authormoodler <moodler>
Mon, 25 Aug 2003 15:59:39 +0000 (15:59 +0000)
committermoodler <moodler>
Mon, 25 Aug 2003 15:59:39 +0000 (15:59 +0000)
mod/forum/report.php

index 8fd9bbff61ad8edc92868ab9bd8c18c9d1312df2..9da4fbc81b4984c7c4a1c05c7caee11c6e54b8b7 100644 (file)
         $sort = "r.time";
     }
 
-    if (!$scale = get_record("scale", "id", $forum->scale)) {
-        error("Scale not found!");
-    }
-
-    $scalemenu = make_menu_from_list($scale->scale);
+    $scalemenu = make_grades_menu($forum->scale);
 
     $strratings = get_string("ratings", "forum");
     $strrating = get_string("rating", "forum");