MDL-15402: if a type has no multiple instances and cannot configure an instance, so do not display the list of instance for this type.

This commit is contained in:
jerome 2008-09-04 02:15:30 +00:00
parent 0a6221f94d
commit 47dafef79a

View File

@ -92,8 +92,11 @@ if (!empty($edit) || !empty($new)) {
//display instances list and creation form
if ($edit){
if (repository_static_function($edit,"has_instance_config")
|| repository_static_function($edit,"has_multiple_instances")){
repository_display_instances_list(get_context_instance(CONTEXT_SYSTEM), true, $edit);
}
}
}
} else if (!empty($hide)) {