Skip to content
Browse files

Use absolute path name for include. Bug 3660.

  • Loading branch information...
1 parent a4e53fb commit 0e48704206a3c5dea386369453c88c9779c3cef0 ikawhero committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/moodlelib.php
2 lib/moodlelib.php
@@ -2689,7 +2689,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);

0 comments on commit 0e48704

Please sign in to comment.
Something went wrong with that request. Please try again.