mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Include filelib.php to fix class not found exception
This commit is contained in:
committed by
Dan Marsden
parent
e632b1c2f9
commit
c4fc4b4396
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user