diff --git a/mod/exercise/upload.php b/mod/exercise/upload.php index 83b0b006826..9d19cf27bda 100644 --- a/mod/exercise/upload.php +++ b/mod/exercise/upload.php @@ -7,7 +7,7 @@ require_variable($id); // course module ID $timenow = time(); - $newfile = $HTTP_POST_FILES["newfile"]; + $newfile = $_FILES["newfile"]; // get some esential stuff... if (! $cm = get_record("course_modules", "id", $id)) { diff --git a/mod/workshop/upload.php b/mod/workshop/upload.php index 29fb7761102..ad6aa0d8b01 100644 --- a/mod/workshop/upload.php +++ b/mod/workshop/upload.php @@ -6,7 +6,7 @@ require_variable($id); // CM ID - $newfile = $HTTP_POST_FILES["newfile"]; + $newfile = $_FILES["newfile"]; if (! $cm = get_record("course_modules", "id", $id)) { error("Course Module ID was incorrect");