Merge branch 'MDL-28593' of git://github.com/timhunt/moodle
authorSam Hemelryk <sam@moodle.com>
Mon, 8 Aug 2011 03:04:19 +0000 (11:04 +0800)
committerSam Hemelryk <sam@moodle.com>
Mon, 8 Aug 2011 03:04:19 +0000 (11:04 +0800)
mod/quiz/lib.php

index cde3701..a81aa5e 100644 (file)
@@ -588,6 +588,7 @@ function quiz_upgrade_grades() {
  */
 function quiz_grade_item_update($quiz, $grades = null) {
     global $CFG, $OUTPUT;
+    require_once($CFG->dirroot . '/mod/quiz/locallib.php');
     require_once($CFG->libdir.'/gradelib.php');
 
     if (array_key_exists('cmidnumber', $quiz)) { // may not be always present