]> git.mjollnir.org Git - moodle.git/commitdiff
Full path for some silly Windows machines
authormoodler <moodler>
Sat, 14 Jun 2003 13:04:58 +0000 (13:04 +0000)
committermoodler <moodler>
Sat, 14 Jun 2003 13:04:58 +0000 (13:04 +0000)
course/view.php

index a393f8dd1ee5fb00ddb7dd3de9a5d8782b6b73f0..c26a162bde1a324026af0e4323f6a10678d14a4f 100644 (file)
         }
     }
 
-    if (!file_exists("./format/$course->format.php")) {   // Default format is weeks
+    if (!file_exists("$CFG->dirroot/course/format/$course->format.php")) {   // Default format is weeks
         $course->format = "weeks";
     }
 
-    require("./format/$course->format.php");  // Include the actual course format
+    require("$CFG->dirroot/course/format/$course->format.php");  // Include the actual course format
 
     print_footer();