From 3721bbf279d0905fcde29665f033df684a7eac81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0koda?= Date: Sat, 30 Jun 2012 20:46:04 +0200 Subject: [PATCH] MDL-34123 use user's lang when sending new emails --- lib/cronlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cronlib.php b/lib/cronlib.php index 1f1bddeba74..4711c3301e5 100644 --- a/lib/cronlib.php +++ b/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