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