mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-24860_messaging_providers' of git://github.com/andyjdavis/moodle
Conflicts: mod/lesson/version.php
This commit is contained in:
commit
1310964bb3
10 changed files with 51 additions and 2 deletions
|
@ -1695,6 +1695,7 @@ function add_to_log($courseid, $module, $action, $url='', $info='', $cm=0, $user
|
|||
|
||||
$lasttime = get_config('admin', 'lastloginserterrormail');
|
||||
if(empty($lasttime) || time() - $lasttime > 60*60*24) { // limit to 1 email per day
|
||||
//using email directly rather than messaging as they may not be able to log in to access a message
|
||||
mail($CFG->supportemail, $subject, $message);
|
||||
set_config('lastloginserterrormail', time(), 'admin');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue