mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
MDL-15402: do not display type form if there is no option to set
This commit is contained in:
parent
ea16a91d2e
commit
ce2066a1c2
@ -91,9 +91,12 @@ if (!empty($edit) || !empty($new)) {
|
||||
} else {
|
||||
admin_externalpage_print_header();
|
||||
print_heading(get_string('configplugin', 'repository_'.$plugin));
|
||||
print_simple_box_start();
|
||||
$mform->display();
|
||||
print_simple_box_end();
|
||||
$typeoptionnames = repository_static_function($edit, 'get_type_option_names');
|
||||
if (!empty($typeoptionnames)){
|
||||
print_simple_box_start();
|
||||
$mform->display();
|
||||
print_simple_box_end();
|
||||
}
|
||||
$return = false;
|
||||
|
||||
//display instances list and creation form
|
||||
|
Loading…
x
Reference in New Issue
Block a user