]> git.mjollnir.org Git - moodle.git/commitdiff
fixing export to use get_final
authortoyomoyo <toyomoyo>
Thu, 21 Jun 2007 02:45:04 +0000 (02:45 +0000)
committertoyomoyo <toyomoyo>
Thu, 21 Jun 2007 02:45:04 +0000 (02:45 +0000)
grade/export/lib.php

index f1e4f7096c299a2ad4ecc67ccc4a3bdaa9ef1b54..611df8745faa1365b3b7764e7e2ae74cfbbab6ee 100755 (executable)
@@ -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";