From 319b472958d0603103b08437ea970fcac6e17213 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 6 May 2004 03:11:15 +0000 Subject: [PATCH] Fix for bug 1312 ... just for robustness in the URLs --- lib/moodlelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 197b179bac..43c3c4e8d2 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -382,7 +382,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", "", fullname($USER, true)), $CFG->wwwroot); + notice(get_string("studentnotallowed", "", fullname($USER, true)), "$CFG->wwwroot/"); } } else { // just update their last login time @@ -395,7 +395,7 @@ function require_login($courseid=0) { } if (!$course->visible) { print_header(); - notice(get_string("studentnotallowed", "", fullname($USER, true)), $CFG->wwwroot); + notice(get_string("studentnotallowed", "", fullname($USER, true)), "$CFG->wwwroot/"); } if ($USER->username == "guest") { switch ($course->guest) { -- 2.39.5