Skip to content

Commit

Permalink
MDL-39477: Remove some unused instances of $CFG
Browse files Browse the repository at this point in the history
Also change @SInCE tags to 2.5.1 because this will be backported.
  • Loading branch information
Damyon Wiese committed May 28, 2013
1 parent a13cbfb commit f407557
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions lib/testing/generator/data_generator.php
Expand Up @@ -563,10 +563,9 @@ public function create_grouping_group($record) {
* @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);
}
Expand All @@ -578,10 +577,9 @@ public function create_repository($type, $record=null, array $options = null) {
* @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);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/testing/generator/repository_generator.php
Expand Up @@ -32,7 +32,7 @@
* @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 {

Expand Down
1 change: 0 additions & 1 deletion repository/tests/generator_test.php
Expand Up @@ -24,7 +24,6 @@
*/

defined('MOODLE_INTERNAL') || die();
global $CFG;

/**
* Repository generator tests class
Expand Down

0 comments on commit f407557

Please sign in to comment.