Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed some instances of include() to include_once()

  • Loading branch information...
commit 004db95014bdac5d4076e97ce13078571308f471 1 parent f1f901c
martin 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
4 course/social.php
View
@@ -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">
2  course/topics.php
View
@@ -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.
2  course/weeks.php
View
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.