fixing export to use get_final

This commit is contained in:
toyomoyo
2007-06-21 02:45:04 +00:00
parent ac9b080524
commit e41c30a25e
+2 -2
View File
@@ -84,7 +84,7 @@ class grade_export {
// first make sure we have all final grades
// TODO: check that no grade_item has needsupdate set
grade_update_final_grades();
grade_update_final_grades($id);
/// Check to see if groups are being used in this course
if ($groupmode = groupmode($course)) { // Groups are being used
@@ -134,7 +134,7 @@ class grade_export {
foreach ($gradeitems as $gradeitem) {
// load as an array of grade_final objects
if ($itemgrades = $gradeitem -> load_final()) {
if ($itemgrades = $gradeitem -> get_final()) {
$this->columns[$gradeitem->id] = "$gradeitem->itemmodule: ".format_string($gradeitem->itemname,true)." - $gradeitem->grademax";