From: moodler Date: Thu, 6 May 2004 03:11:15 +0000 (+0000) Subject: Fix for bug 1312 ... just for robustness in the URLs X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=319b472958d0603103b08437ea970fcac6e17213;p=moodle.git Fix for bug 1312 ... just for robustness in the URLs --- 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) {