Skip to content

Commit

Permalink
MDL-58288 fileconverter_unoconv: Remove old test conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Mar 17, 2017
1 parent 2935d0f commit c563adf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions files/converter/unoconv/classes/converter.php
Expand Up @@ -197,6 +197,9 @@ public function serve_test_document() {
}

$conversions = conversion::get_conversions_for_file($testdocx, $format);
foreach ($conversions as $conversion) {
$conversion->delete();
}

$conversion = new conversion(0, (object) [
'sourcefileid' => $testdocx->get_id(),
Expand Down

0 comments on commit c563adf

Please sign in to comment.