MDL-15846 add option to prevent course welcome emails + support for searching in enrolment page; backported from HEAD

This commit is contained in:
skodak
2008-07-26 16:51:11 +00:00
parent 054fabfbb8
commit f6e0e6860f
5 changed files with 98 additions and 3 deletions
+4
View File
@@ -4503,6 +4503,10 @@ function email_is_not_allowed($email) {
function email_welcome_message_to_user($course, $user=NULL) {
global $CFG, $USER;
if (isset($CFG->sendcoursewelcomemessage) and !$CFG->sendcoursewelcomemessage) {
return;
}
if (empty($user)) {
if (!isloggedin()) {
return false;