Use absolute path name for include. Bug 3660.

This commit is contained in:
ikawhero 2005-07-15 00:00:35 +00:00
parent 90b84141a2
commit 463a92dbef

View File

@ -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);