Permalink
Browse files

MDL-39477: Remove some unused instances of $CFG

Also change @since tags to 2.5.1 because this will be backported.
  • Loading branch information...
1 parent a13cbfb commit f4075573b9e6dcdc6f53cd80e62849757fecf561 @damyon damyon committed May 28, 2013
@@ -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);
}
@@ -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);
}
@@ -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 {
@@ -24,7 +24,6 @@
*/
defined('MOODLE_INTERNAL') || die();
-global $CFG;
/**
* Repository generator tests class

0 comments on commit f407557

Please sign in to comment.