From 2e06e8fa2d97dc454a4ee99b69b00ede8166ea7c Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 29 Aug 2019 11:45:47 +1200 Subject: [PATCH] Fix #421 - include filelib.php in structure class. we should tidy this up at some point. --- classes/structure.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/structure.php b/classes/structure.php index 52f4c39..d6d1ab9 100644 --- a/classes/structure.php +++ b/classes/structure.php @@ -23,7 +23,9 @@ */ defined('MOODLE_INTERNAL') || die(); +global $CFG; // This class is included inside existing functions. require_once(dirname(__FILE__) . '/calendar_helpers.php'); +require_once($CFG->libdir .'/filelib.php'); /** * Main class with all Attendance related info.