Merge branch 'MDL-38426_dnd_plain_text' of git://github.com/davosmith/moodle
This commit is contained in:
@@ -264,6 +264,9 @@ function label_dndupload_handle($uploadinfo) {
|
||||
}
|
||||
} else if (!empty($uploadinfo->content)) {
|
||||
$data->intro = $uploadinfo->content;
|
||||
if ($uploadinfo->type != 'text/html') {
|
||||
$data->introformat = FORMAT_PLAIN;
|
||||
}
|
||||
}
|
||||
|
||||
return label_add_instance($data, null);
|
||||
|
||||
Reference in New Issue
Block a user