]> git.mjollnir.org Git - moodle.git/commitdiff
Changed includes of module libraries to use full pathnames constructed
authormoodler <moodler>
Sun, 6 Oct 2002 03:05:22 +0000 (03:05 +0000)
committermoodler <moodler>
Sun, 6 Oct 2002 03:05:22 +0000 (03:05 +0000)
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.

course/social.php
course/topics.php
course/weeks.php

index 47590113aecce8a22ea7d42554558af40d2ba3d9..48e729fa7485e8a9055db345f427a3f5c76ab711 100644 (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">
index 92bbb5e762a828207787e199430492c15bf6e6d5..b291a7876ff7090f40e86184362f718e136ee4b7 100644 (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.
index 80f2e06e532746c5deec41c6af2901d856607cfd..55118ec653830315f150da388010968e9a8dcee6 100644 (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.