Merge commit 'FETCH_HEAd'
This commit is contained in:
@@ -184,9 +184,10 @@ class qformat_xml extends qformat_default {
|
||||
$data = new stdClass();
|
||||
$data->content = $filedata;
|
||||
$data->encoding = 'base64';
|
||||
$data->name = $filename;
|
||||
// Question file areas don't support subdirs, so convert path to filename if necessary.
|
||||
$data->name = clean_param(str_replace('/', '_', $filename), PARAM_FILE);
|
||||
$qo->questiontextfiles[] = $data;
|
||||
$qo->questiontext .= ' <img src="@@PLUGINFILE@@/' . $filename . '" />';
|
||||
$qo->questiontext .= ' <img src="@@PLUGINFILE@@/' . $data->name . '" />';
|
||||
}
|
||||
|
||||
// restore files in generalfeedback
|
||||
|
||||
Reference in New Issue
Block a user