Skip to content

Commit

Permalink
MDL-61194 assignfeedback_editpdf: Check if we can convert online text
Browse files Browse the repository at this point in the history
This patch adds a check to make sure there is a converter available that
will be able to handle html->pdf conversion before adding onlinetext
submissions to the list of files to combine.
  • Loading branch information
cameorn1730 committed May 3, 2018
1 parent af099b4 commit 23fe1e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assign/feedback/editpdf/classes/document_services.php
Expand Up @@ -188,7 +188,7 @@ protected static function list_compatible_submission_files_for_attempt($assignme
} else if ($convertedfile = $converter->start_conversion($file, 'pdf')) {
$files[$filename] = $convertedfile;
}
} else {
} else if ($converter->can_convert_format_to('html', 'pdf')) {
// Create a tmp stored_file from this html string.
$file = reset($file);
// Strip image tags, because they will not be resolvable.
Expand Down

0 comments on commit 23fe1e2

Please sign in to comment.