Skip to content

Commit

Permalink
Evarisk#1903 [ODT] add: photo_ko/ok fields
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Oct 10, 2024
1 parent 110f0b5 commit 4bffb58
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ public function fillTagsLines(Odf $odfHandler, Translate $outputLangs, array $mo
$tmpArray['ref'] = $question->ref;
$tmpArray['label'] = $question->label;
$tmpArray['description'] = $question->description;
foreach (['photo_ko', 'photo_ok'] as $photoType) {
if (!empty($question->$photoType)) {
$path = $conf->digiquali->multidir_output[$conf->entity] . '/question/' . $question->ref . '/' . $photoType;
$fileSmall = saturne_get_thumb_name($question->$photoType);
$image = $path . '/thumbs/' . $fileSmall;
$tmpArray[$photoType] = $image;
}
}

if (is_array($controldets) && !empty($controldets)) {
$questionAnswerLine = array_shift($controldets);
Expand Down

0 comments on commit 4bffb58

Please sign in to comment.