Skip to content

Commit

Permalink
MDL-62491 mod_assign: Fill in the rewrite plugin urls properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
abgreeve committed Oct 8, 2018
1 parent e90a0a7 commit 812c409
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -98,9 +98,10 @@ public static function export_submission_user_data(assign_plugin_request_data $e
$context = $exportdata->get_context();
if (!empty($editortext)) {
$submissiontext = new \stdClass();
$submissiontext->text = writer::with_context($context)->rewrite_pluginfile_urls([], '', '', '', $editortext);
$currentpath = $exportdata->get_subcontext();
$currentpath[] = get_string('privacy:path', 'assignsubmission_onlinetext');
$submissiontext->text = writer::with_context($context)->rewrite_pluginfile_urls($currentpath,
'assignsubmission_onlinetext', 'submissions_onlinetext', $submission->id, $editortext);
writer::with_context($context)
->export_area_files($currentpath, 'assignsubmission_onlinetext', 'submissions_onlinetext', $submission->id)
// Add the text to the exporter.
Expand Down

0 comments on commit 812c409

Please sign in to comment.