Merge pull request #250 from jcharaoui/fix-class-curl-not-found

Include filelib.php to fix class not found exception, fix #247
This commit is contained in:
Dan Marsden
2021-05-06 10:22:40 +12:00
committed by GitHub

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