From: martin Date: Tue, 26 Feb 2002 06:35:18 +0000 (+0000) Subject: Some changes to accomodate changes in the reading lib X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=693c02d0f5f86b30022cb0c6816d337da1b3f4dc;p=moodle.git Some changes to accomodate changes in the reading lib --- diff --git a/index.php b/index.php index 8b45088e39..c4538700f3 100644 --- a/index.php +++ b/index.php @@ -2,6 +2,7 @@ // index.php - the front page. require("config.php"); + include("mod/reading/lib.php"); if (! $site = get_record("course", "category", 0)) { redirect("$CFG->wwwroot/admin/"); @@ -23,8 +24,16 @@
  • Courses
  • Forums
  • - $reading"; + } + } + + if ($USER->editing) { + echo "

    wwwroot/course/mod.php?id=$course->id&week=0&add=reading\">Add Reading...

    "; + } ?>