Merge branch 'MDL-38426_dnd_plain_text' of git://github.com/davosmith/moodle

This commit is contained in:
Damyon Wiese
2013-03-19 14:36:43 +08:00
+3
View File
@@ -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);