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.
// 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">
// 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.
// 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.