MDL-15404: fix few bugs in repository administration, add a beta version of the course repository list

This commit is contained in:
jerome
2008-09-05 06:30:18 +00:00
parent 8238f44f16
commit faaa613d99
8 changed files with 227 additions and 43 deletions
+3 -1
View File
@@ -13,6 +13,8 @@ $sure = optional_param('sure', '', PARAM_ALPHA);
$move = optional_param('move', '', PARAM_ALPHA);
$type = optional_param('type', '', PARAM_ALPHA);
$context = get_context_instance(CONTEXT_SYSTEM);
$display = true; // fall through to normal display
$pagename = 'repositorycontroller';
@@ -57,7 +59,7 @@ if (!empty($edit) || !empty($new)) {
}
// display the edit form for this instance
$mform = new repository_instance_form('', array('plugin' => $plugin, 'typeid' => $typeid,'instance' => $instance));
$mform = new repository_instance_form('', array('plugin' => $plugin, 'typeid' => $typeid,'instance' => $instance, 'contextid' => $context->id));
// end setup, begin output
if ($mform->is_cancelled()){