mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 00:20:37 +01:00
Merge branch 'MDL-49366' of git://github.com/timhunt/moodle
This commit is contained in:
commit
2af068596a
@ -1833,6 +1833,9 @@ function question_pluginfile($course, $context, $component, $filearea, $args, $f
|
||||
|
||||
$module = $DB->get_field('question_usages', 'component',
|
||||
array('id' => $qubaid));
|
||||
if (!$module) {
|
||||
send_file_not_found();
|
||||
}
|
||||
|
||||
if ($module === 'core_question_preview') {
|
||||
require_once($CFG->dirroot . '/question/previewlib.php');
|
||||
|
Loading…
x
Reference in New Issue
Block a user