From: martin Date: Sat, 21 Sep 2002 08:40:27 +0000 (+0000) Subject: Make sure user language works OK (it does now) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a16c2180d06a60c93f0e19dbd82a6de837d27e1e;p=moodle.git Make sure user language works OK (it does now) --- diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index 00fb0ec729..01cfb250be 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -108,7 +108,7 @@ function assignment_cron () { // Function to be run periodically according to the moodle cron // Finds all assignment notifications that have yet to be mailed out, and mails them - global $CFG; + global $CFG, $USER; $cutofftime = time() - $CFG->maxeditingtime; diff --git a/mod/forum/lib.php b/mod/forum/lib.php index ba44914f17..0d4fca864e 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -869,7 +869,7 @@ function forum_cron () { // Function to be run periodically according to the moodle cron // Finds all posts that have yet to be mailed out, and mails them - global $CFG; + global $CFG, $USER; $cutofftime = time() - $CFG->maxeditingtime; diff --git a/mod/journal/lib.php b/mod/journal/lib.php index 58ddf87e5d..be3ede06be 100644 --- a/mod/journal/lib.php +++ b/mod/journal/lib.php @@ -47,7 +47,7 @@ function journal_cron () { // Function to be run periodically according to the moodle cron // Finds all journal notifications that have yet to be mailed out, and mails them - global $CFG; + global $CFG, $USER; $cutofftime = time() - $CFG->maxeditingtime;