mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-61194 assignfeedback_editpdf: Check if we can convert online text
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.
This commit is contained in:
parent
af099b484c
commit
23fe1e2bed
@ -188,7 +188,7 @@ EOD;
|
||||
} 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user