fixed my silly typo from db conversion

This commit is contained in:
skodak
2008-11-02 21:37:41 +00:00
parent d75d327465
commit c765b6b73f
+1 -1
View File
@@ -344,7 +344,7 @@
if (!$returnfromfunc or !is_number($returnfromfunc)) {
// undo everything we can
$modcontext = get_context_instance(COURSE_MODULE, $fromform->coursemodule);
$modcontext = get_context_instance(CONTEXT_MODULE, $fromform->coursemodule);
$fs = get_file_storage();
$fs->delete_area_files($modcontext->id);
delete_context(CONTEXT_MODULE, $fromform->coursemodule);