MDL-38426 mod_label - correctly handle plain text that has been added by drag and drop upload

This commit is contained in:
Davo Smith 2013-03-12 19:46:14 +00:00
parent 8673a98d1d
commit 3d38777333

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