]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15402: refactor repository_admin_form into repository_type_form
authorjerome <jerome>
Thu, 18 Sep 2008 05:48:25 +0000 (05:48 +0000)
committerjerome <jerome>
Thu, 18 Sep 2008 05:48:25 +0000 (05:48 +0000)
admin/repository.php
repository/lib.php

index 008f55de818588d401cf034a2c39d27ed5a5895f..cc8a97f43206302b028696b8e913fe3b3e564831 100644 (file)
@@ -50,7 +50,7 @@ if (!empty($edit) || !empty($new)) {
     }
     $CFG->pagepath = 'admin/managerepository/' . $plugin;
     // display the edit form for this instance
-    $mform = new repository_admin_form('', array('plugin' => $plugin, 'instance' => $repositorytype));
+    $mform = new repository_type_form('', array('plugin' => $plugin, 'instance' => $repositorytype));
     $fromform = $mform->get_data();
 
     //detect if we create a new type without config (in this case if don't want to display a setting page during creation)
index 74a849e55e72e415351223d810d54bf70456ea81..19d45ed4ab5f390a12b388c990848cc758aa2213 100644 (file)
@@ -1306,7 +1306,7 @@ final class repository_instance_form extends moodleform {
 /**
  * Display a form with the general option fields of a type
  */
-final class repository_admin_form extends moodleform {
+final class repository_type_form extends moodleform {
     protected $instance;
     protected $plugin;