From c4fc4b4396b0a9d0b775dbc328de9d8f670e72ef Mon Sep 17 00:00:00 2001 From: Jerome Charaoui Date: Sun, 11 Apr 2021 11:44:44 -0400 Subject: [PATCH] Include filelib.php to fix class not found exception --- classes/local/outagelib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/local/outagelib.php b/classes/local/outagelib.php index 8d828a8..5a09ace 100644 --- a/classes/local/outagelib.php +++ b/classes/local/outagelib.php @@ -65,6 +65,9 @@ class outagelib { * @param string $file file to be fetched */ public static function fetch_page($file) { + global $CFG; + require_once($CFG->libdir . '/filelib.php'); + $curl = new curl(); $contents = $curl->get($file); $info = $curl->get_info();