Plugin: Test2PDF: Fix images paths #4153

pull/4219/head
Angel Fernando Quiroz Campos 4 years ago
parent 571d2e6193
commit 7c9d54d0a6
  1. 7
      plugin/test2pdf/src/download-pdf.php

@ -55,7 +55,12 @@ if ($_GET['type'] == 'question' || $_GET['type'] == 'all') {
$pdf->SetTextColor(64);
$pdf->MultiCell(0, 7, ($key + $j).' - '.$infoQuestion['question'], 0, 'L', false);
if (!empty($infoQuestion['description'])) {
$pdf->WriteHTML(removeQuotes($infoQuestion['description']));
$pdf->WriteHTML(
PDF::fixImagesPaths(
removeQuotes($infoQuestion['description']),
$infoCourse
)
);
}
$infoAnswer = getAnswers($courseId, $value);

Loading…
Cancel
Save