Include filelib.php to fix class not found exception

This commit is contained in:
Jerome Charaoui
2021-04-11 11:44:44 -04:00
committed by Dan Marsden
parent e632b1c2f9
commit c4fc4b4396

View File

@@ -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();