mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
portfolio/lib MDL-15995 Added a missing global declaration for $CFG that broke cron
This commit is contained in:
parent
eb47f1ea77
commit
b73d1651fe
1 changed files with 2 additions and 1 deletions
|
@ -918,7 +918,8 @@ function portfolio_handle_event($eventdata) {
|
|||
* @todo add hooks in the plugins - either per instance or per plugin
|
||||
*/
|
||||
function portfolio_cron() {
|
||||
global $DB;
|
||||
global $DB, $CFG;
|
||||
|
||||
require_once($CFG->libdir . '/portfolio/exporter.php');
|
||||
if ($expired = $DB->get_records_select('portfolio_tempdata', 'expirytime < ?', array(time()), '', 'id')) {
|
||||
foreach ($expired as $d) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue