Error message for restricted users

This commit is contained in:
moodler
2004-01-30 09:55:57 +00:00
parent fcf9c45033
commit 5ea64f4b2f
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -478,7 +478,7 @@ function check_for_restricted_user($username=NULL, $redirect="") {
if (!empty($CFG->restrictusers)) {
$names = explode(',', $CFG->restrictusers);
if (in_array($username, $names)) {
error(get_string("restricteduser"), $redirect);
error(get_string("restricteduser", "error"), $redirect);
}
}
}