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.
This commit is contained in:
moodler
2002-10-06 03:05:22 +00:00
parent f01826ee39
commit 765814def3
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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");
?>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="5" CELLPADDING="5">
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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.