Commit ff284987 authored by Penny Leach's avatar Penny Leach
Browse files

online assignment / send_file: MDL-21104 fixed two missing variables

parent 7ef73632
......@@ -338,10 +338,12 @@ class assignment_online extends assignment_base {
public function send_file($filearea, $args) {
global $USER;
require_capability('mod/assignment:view', $this->context);
$fullpath = $this->context->id.$filearea.implode('/', $args);
$fs = get_file_storage();
if (!$file = $fs->get_file_by_hash(sha1($fullpath)) or $file->is_directory()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment