MDL-68847 mod_url: fix bug when using dnd to handle urls

This generates a notice, which wasn't seen because the feature works
asynchronously.
This commit is contained in:
Jake Dallimore
2020-05-28 09:32:34 +08:00
parent 35dd608161
commit 45da2ac9d3
+1
View File
@@ -318,6 +318,7 @@ function url_dndupload_handle($uploadinfo) {
$data->introformat = FORMAT_HTML;
$data->externalurl = clean_param($uploadinfo->content, PARAM_URL);
$data->timemodified = time();
$data->coursemodule = $uploadinfo->coursemodule;
// Set the display options to the site defaults.
$config = get_config('url');