From a16c2180d06a60c93f0e19dbd82a6de837d27e1e Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 21 Sep 2002 08:40:27 +0000 Subject: [PATCH] Make sure user language works OK (it does now) --- mod/assignment/lib.php | 2 +- mod/forum/lib.php | 2 +- mod/journal/lib.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5