From: moodler Date: Sun, 6 Oct 2002 03:05:22 +0000 (+0000) Subject: Changed includes of module libraries to use full pathnames constructed X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=765814def39176f2a6f44d01f0a5c8763889034f;p=moodle.git Changed includes of module libraries to use full pathnames constructed from $CFG->dirroot, rather than relative. This is because the relative path could sometime be a different case to the full path (on Windows) causing include_once not to work. --- diff --git a/course/social.php b/course/social.php index 47590113ae..48e729fa74 100644 --- a/course/social.php +++ b/course/social.php @@ -2,8 +2,8 @@ // social.php - course format featuring social forum // included from view.php - include_once("../mod/forum/lib.php"); - include_once("../mod/reading/lib.php"); + include_once("$CFG->dirroot/mod/forum/lib.php"); + include_once("$CFG->dirroot/mod/reading/lib.php"); ?> diff --git a/course/topics.php b/course/topics.php index 92bbb5e762..b291a7876f 100644 --- a/course/topics.php +++ b/course/topics.php @@ -6,7 +6,7 @@ // courses that aren't so rigidly defined by time. // Included from "view.php" - include_once("../mod/forum/lib.php"); + include_once("$CFG->dirroot/mod/forum/lib.php"); if (! $sections = get_all_sections($course->id) ) { $section->course = $course->id; // Create a default section. diff --git a/course/weeks.php b/course/weeks.php index 80f2e06e53..55118ec653 100644 --- a/course/weeks.php +++ b/course/weeks.php @@ -2,7 +2,7 @@ // Display the whole course as "weeks" made of of modules // Included from "view.php" - include_once("../mod/forum/lib.php"); + include_once("$CFG->dirroot/mod/forum/lib.php"); if (! $sections = get_all_sections($course->id)) { $section->course = $course->id; // Create a default section.