Skip to content
Browse files

Fix for an (apparently old but only recently discovered by me) issue …

…from the

forums where require_once() would fail to do the "once" part unless you use
absolute pathnames.
  • Loading branch information...
1 parent 99dac04 commit 56b19c309e11e9ba462014a24625008759805bd5 defacer committed Jun 2, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/view.php
View
2 course/view.php
@@ -25,7 +25,7 @@
require_login($course->id);
- require_once('../calendar/lib.php'); /// This is after login because it needs $USER
+ require_once($CFG->dirroot.'/calendar/lib.php'); /// This is after login because it needs $USER
add_to_log($course->id, "course", "view", "view.php?id=$course->id", "$course->id");

0 comments on commit 56b19c3

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