mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
adding include_once for gradelib public api function
This commit is contained in:
parent
3969778b76
commit
0e4743c847
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user