mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 20:53:53 +01:00
Use absolute path name for include. Bug 3660.
This commit is contained in:
parent
90b84141a2
commit
463a92dbef
@ -2894,7 +2894,7 @@ function add_teacher($userid, $courseid, $editall=1, $role='', $timestart=0, $ti
|
||||
delete_records('user_students', 'userid', $userid, 'course', $courseid); // Unenrol as student
|
||||
|
||||
/// Add forum subscriptions for new users
|
||||
require_once('../mod/forum/lib.php');
|
||||
require_once($CFG->dirroot.'/mod/forum/lib.php');
|
||||
forum_add_user($userid, $courseid);
|
||||
|
||||
return insert_record('user_teachers', $teacher);
|
||||
|
Loading…
x
Reference in New Issue
Block a user