Merge branch 'MDL-49366' of git://github.com/timhunt/moodle

This commit is contained in:
David Monllao 2015-03-10 14:41:09 +08:00
commit 2af068596a

View File

@ -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');