Changed some instances of include() to include_once()
This commit is contained in:
+2
-2
@@ -2,8 +2,8 @@
|
||||
// social.php - course format featuring social forum
|
||||
// included from view.php
|
||||
|
||||
include("../mod/forum/lib.php");
|
||||
include("../mod/reading/lib.php");
|
||||
include_once("../mod/forum/lib.php");
|
||||
include_once("../mod/reading/lib.php");
|
||||
?>
|
||||
|
||||
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="5" CELLPADDING="5">
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
// courses that aren't so rigidly defined by time.
|
||||
// Included from "view.php"
|
||||
|
||||
include("../mod/forum/lib.php");
|
||||
include_once("../mod/forum/lib.php");
|
||||
|
||||
if (! $sections = get_all_sections($course->id) ) {
|
||||
$section->course = $course->id; // Create a default section.
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
// Display the whole course as "weeks" made of of modules
|
||||
// Included from "view.php"
|
||||
|
||||
include("../mod/forum/lib.php");
|
||||
include_once("../mod/forum/lib.php");
|
||||
|
||||
if (! $sections = get_all_sections($course->id)) {
|
||||
$section->course = $course->id; // Create a default section.
|
||||
|
||||
Reference in New Issue
Block a user