Permalink
Browse files

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

  • Loading branch information...
1 parent a5f6ea2 commit 134affd943a5f129d67c0350d48cca74b93c6a4d @skodak skodak committed Jun 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cronlib.php
View
@@ -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 134affd

Please sign in to comment.