]> git.mjollnir.org Git - moodle.git/commitdiff
making grabbing grades from 3rd party mods run 20% of the time
authortoyomoyo <toyomoyo>
Wed, 9 May 2007 06:14:09 +0000 (06:14 +0000)
committertoyomoyo <toyomoyo>
Wed, 9 May 2007 06:14:09 +0000 (06:14 +0000)
admin/cron.php

index 6f33caca300b9f9593baec3788de6899e48b3c4f..83a48f1575bfda981a8f31e0642536bdba2a9812 100644 (file)
                 }
             }
         }
+        
+        // attemps to grab grades from third party/non-stard mods, or mods with no event
+        // implemented for 1.9 and above.
+        mtrace("Grabbing grades from modules if required...");
+        include_once($CFG->dirroot.'/lib/gradelib.php');
+        grades_grab_grades();
 
     } // End of occasional clean-up tasks
 
             }
         }
     }
-    
-    // attemps to grab grades from third party/non-stard mods, or mods with no event
-    // implemented for 1.9 and above.
-    mtrace("Grabbing grades from modules if required...");
-    include_once($CFG->dirroot.'/lib/gradelib.php');
-    grades_grab_grades();
 
     //Unset session variables and destroy it
     @session_unset();