From c765b6b73f0e199eff284b428e4412037f65ae32 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 2 Nov 2008 21:37:41 +0000 Subject: [PATCH] fixed my silly typo from db conversion --- course/modedit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/modedit.php b/course/modedit.php index 08b43a342f5..69a2a7ea2cf 100644 --- a/course/modedit.php +++ b/course/modedit.php @@ -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);