|
|
@ -1068,8 +1068,7 @@ function mod_game_pluginfile($course, $cm, $context, $filearea, $args, $forcedow |
|
|
|
$questionid = $args[ 0]; |
|
|
|
$file = $args[ 1]; |
|
|
|
$a = explode( '/', $context->path); |
|
|
|
$courseid = $a[ 2]; |
|
|
|
if (!$contextcourse = get_context_instance(CONTEXT_COURSE, $courseid)) { |
|
|
|
if (!$contextcourse = get_context_instance(CONTEXT_COURSE, $course->id)) { |
|
|
|
print_error('nocontext'); |
|
|
|
} |
|
|
|
$a = array( 'component' => 'question', 'filearea' => 'questiontext', |
|
|
|