MDL-39477: Remove some unused instances of $CFG
Also change @since tags to 2.5.1 because this will be backported.
This commit is contained in:
@@ -563,10 +563,9 @@ EOD;
|
||||
* @param array|stdClass $record data to use to up set the instance.
|
||||
* @param array $options options
|
||||
* @return stdClass repository instance record
|
||||
* @since 2.6
|
||||
* @since 2.5.1
|
||||
*/
|
||||
public function create_repository($type, $record=null, array $options = null) {
|
||||
global $CFG;
|
||||
$generator = $this->get_plugin_generator('repository_'.$type);
|
||||
return $generator->create_instance($record, $options);
|
||||
}
|
||||
@@ -578,10 +577,9 @@ EOD;
|
||||
* @param array|stdClass $record data to use to up set the instance.
|
||||
* @param array $options options
|
||||
* @return repository_type object
|
||||
* @since 2.6
|
||||
* @since 2.5.1
|
||||
*/
|
||||
public function create_repository_type($type, $record=null, array $options = null) {
|
||||
global $CFG;
|
||||
$generator = $this->get_plugin_generator('repository_'.$type);
|
||||
return $generator->create_type($record, $options);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @category test
|
||||
* @copyright 2013 Frédéric Massart
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since 2.6
|
||||
* @since 2.5.1
|
||||
*/
|
||||
class testing_repository_generator extends component_generator_base {
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
global $CFG;
|
||||
|
||||
/**
|
||||
* Repository generator tests class
|
||||
|
||||
Reference in New Issue
Block a user