mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixed notices a bit
This commit is contained in:
parent
cb909d74ca
commit
5ebe27e22c
@ -631,7 +631,7 @@ function notice ($message, $link="") {
|
||||
echo "<BR>";
|
||||
print_simple_box($message, "center", "", "$THEME->cellheading");
|
||||
print_heading("<A HREF=\"$link\">".get_string("continue")."</A>");
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user