Skip to content
Browse files

MDL-34123 use user's lang when sending new emails

  • Loading branch information...
1 parent 68b0cae commit 3721bbf279d0905fcde29665f033df684a7eac81 @skodak skodak committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cronlib.php
View
2 lib/cronlib.php
@@ -208,7 +208,7 @@ function cron_run() {
if ($DB->count_records('user_preferences', array('name'=>'create_password', 'value'=>'1'))) {
mtrace('Creating passwords for new users...');
$newusers = $DB->get_recordset_sql("SELECT u.id as id, u.email, u.firstname,
- u.lastname, u.username,
+ u.lastname, u.username, u.lang,
p.id as prefid
FROM {user} u
JOIN {user_preferences} p ON u.id=p.userid

0 comments on commit 3721bbf

Please sign in to comment.
Something went wrong with that request. Please try again.