Single more concise string for login error notification emails

This commit is contained in:
moodler 2004-08-03 06:53:04 +00:00
parent 2f565a77a3
commit 780dd11cfb
2 changed files with 3 additions and 4 deletions

View File

@ -716,8 +716,7 @@ $string['notenrolled'] = '$a is not enrolled in this course.';
$string['noteuserschangednonetocourse'] = 'Note: course users need to be restored when restoring user data. This setting has been changed for you.';
$string['notifyloginfailuressubject'] = '$a :: Failed logins notification';
$string['notifyloginfailuresmessagestart'] = 'Here is a list of failed login attempts at $a since you were last notified ';
$string['notifyloginfailuresmessagefromip'] = ' from IP address ';
$string['notifyloginfailuresmessagewithuser'] = ' with username ';
$string['notifyloginfailuresmessage'] = '$a->time, IP: $a->ip, User: $a->info';
$string['notifyloginfailuresmessageend'] = 'You can view these logs at $a/course/log.php?id=1&chooselog=1&modid=site_errors.';
$string['numattempts'] = '$a failed login attempt(s) ';
$string['nothingnew'] = 'Nothing new since your last login';

View File

@ -2550,8 +2550,8 @@ function notify_login_failures() {
$message .= get_string('notifyloginfailuresmessagestart','',$CFG->wwwroot)
.(($CFG->lastnotifyfailure != 0) ? '('.userdate($CFG->lastnotifyfailure).')' : '')."\n\n";
foreach ($logs as $log) {
$message .= userdate($log->time) .get_string('notifyloginfailuresmessagefromip').$log->ip
.get_string('notifyloginfailuresmessagewithuser').$log->info."\n";
$log->time = userdate($log->time);
$message .= get_string('notifyloginfailuresmessage','',$log)."\n";
}
$message .= "\n\n".get_string('notifyloginfailuresmessageend','',$CFG->wwwroot)."\n\n";
foreach ($recip as $admin) {