From 693c02d0f5f86b30022cb0c6816d337da1b3f4dc Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 26 Feb 2002 06:35:18 +0000 Subject: [PATCH] Some changes to accomodate changes in the reading lib --- index.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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...

    "; + } ?>

    -- 2.39.5