From 7d44f9c2a202fb930b496dccdaa8ccc49bdd7e25 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Wed, 16 May 2012 12:52:03 +0800 Subject: [PATCH] MDL-28666: filelib - remove unusused globals --- lib/filelib.php | 2 -- 1 file changed, 2 deletions(-) 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');