From b7b6fef98c4837d21e4e76078f7ba5a488839839 Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 11 Jun 2002 07:43:54 +0000 Subject: [PATCH] OK, this is better (sigh) --- index.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index c89c4ffd70..a41ea9eddd 100644 --- a/index.php +++ b/index.php @@ -34,12 +34,13 @@ echo "
  • $reading"; } } + if ($USER->editing) { + echo "

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

    "; + } else { + echo "

    "; + } } - if ($USER->editing) { - echo "

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

    "; - echo "
    "; - } if (isadmin()) { print_simple_box("Admin", $align="CENTER", $width="100%", $color="$THEME->cellheading"); -- 2.39.5