]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for bug 1312 ... just for robustness in the URLs
authormoodler <moodler>
Thu, 6 May 2004 03:11:15 +0000 (03:11 +0000)
committermoodler <moodler>
Thu, 6 May 2004 03:11:15 +0000 (03:11 +0000)
lib/moodlelib.php

index 197b179bacc6903988fee9fd109a2e25990fca06..43c3c4e8d2b032f3f31f5dc1a8dacd9399ce3fb5 100644 (file)
@@ -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) {