diff --git a/lib/filelib.php b/lib/filelib.php index b3fa8f24dc5..8a35373b8c3 100644 --- a/lib/filelib.php +++ b/lib/filelib.php @@ -4214,7 +4214,6 @@ class cache_file { * @return string cached file path */ public static function create_from_url($ref, $url, $options = array()) { - global $CFG; $instance = self::get_instance($options); $cachedfilepath = $instance->generate_filepath($ref); $fp = fopen($cachedfilepath, 'w'); @@ -4234,7 +4233,6 @@ class cache_file { * @return string cached file path */ public static function create_from_string($ref, $string, $options = array()) { - global $CFG; $instance = self::get_instance($options); $cachedfilepath = $instance->generate_filepath($ref); $fp = fopen($cachedfilepath, 'w');