From 5ebe27e22c6f2ad78c0e67f744050f86d32e3b2f Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 5 Nov 2002 16:47:30 +0000 Subject: [PATCH] Fixed notices a bit --- lib/moodlelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index e1cf81ed0b3..25aff69ffbd 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -631,7 +631,7 @@ function notice ($message, $link="") { echo "
"; print_simple_box($message, "center", "", "$THEME->cellheading"); print_heading("".get_string("continue").""); - print_footer(); + print_footer(get_site()); die; } @@ -1141,7 +1141,7 @@ function require_login($courseid=0) { if (isset($USER->realuser)) { // Make sure the REAL person can also access this course if (!isteacher($courseid, $USER->realuser)) { print_header(); - notice(get_string("studentnotallowed", "", "$USER->firstname $USER->lastname")); + notice(get_string("studentnotallowed", "", "$USER->firstname $USER->lastname"), $CFG->wwwroot); } } else { // just update their last login time