$string['invalidfieldname'] = '\"$a\" is not a valid field name';
$string['missingfield'] = 'Field \"$a\" is missing';
$string['modulerequirementsnotmet'] = 'Module \"$a->modulename\" ($a->moduleversion) could not be installed. It requires a newer version of Moodle (currently you are using $a->currentmoodle, you need $a->requiremoodle).';
-$string['restricteduser'] = 'Sorry, but you are currently restricted from doing that.';
+$string['restricteduser'] = 'Sorry, but your current account \"$a\" is restricted from doing that.';
$string['unknowncourse'] = 'Unknown course named \"$a\"';
$string['usernotaddederror'] = 'User \"$a\" not added - unknown error';
$string['usernotaddedregistered'] = 'User \"$a\" not added - already registered';
if (!empty($CFG->restrictusers)) {
$names = explode(',', $CFG->restrictusers);
if (in_array($username, $names)) {
- error(get_string("restricteduser", "error"), $redirect);
+ error(get_string("restricteduser", "error", fullname($USER)), $redirect);
}
}
}