Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit 765814def39176f2a6f44d01f0a5c8763889034f 1 parent f01826e
moodler authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 course/social.php
  2. +1 −1  course/topics.php
  3. +1 −1  course/weeks.php
View
4 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");
?>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="5" CELLPADDING="5">
View
2  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.
View
2  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.
Please sign in to comment.
Something went wrong with that request. Please try again.