Skip to content

Commit

Permalink
MDL-34123 use user's lang when sending new emails
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 30, 2012
1 parent a5f6ea2 commit 134affd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cronlib.php
Expand Up @@ -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
Expand Down

0 comments on commit 134affd

Please sign in to comment.