MDL-28666: filelib - remove unusused globals
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user