From: martin Date: Thu, 26 Sep 2002 14:41:59 +0000 (+0000) Subject: Changed some instances of include() to include_once() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=004db95014bdac5d4076e97ce13078571308f471;p=moodle.git Changed some instances of include() to include_once() --- diff --git a/course/social.php b/course/social.php index f10c22fc36..47590113ae 100644 --- a/course/social.php +++ b/course/social.php @@ -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"); ?> diff --git a/course/topics.php b/course/topics.php index a2b2785658..df1a8cc986 100644 --- a/course/topics.php +++ b/course/topics.php @@ -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. diff --git a/course/weeks.php b/course/weeks.php index 49321c71ba..80f2e06e53 100644 --- a/course/weeks.php +++ b/course/weeks.php @@ -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.