MDL-15402: refactor repository_admin_form into repository_type_form
This commit is contained in:
@@ -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)
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user