adding include_once for gradelib public api function

This commit is contained in:
toyomoyo 2007-06-26 06:28:42 +00:00
parent 3969778b76
commit 0e4743c847

View File

@ -1132,6 +1132,7 @@ function forum_update_grades($forum=null, $userid=0, $nullifnone=true) {
global $CFG;
if ($forum != null) {
require_once($CFG->libdir.'/lib/gradelib.php');
if ($grades = forum_get_user_grades($forum, $userid)) {
grade_update('mod/forum', $forum->course, 'mod', 'forum', $forum->id, 0, $grades);