Skip to content

Commit

Permalink
Test: Fix Directories & Filename of File-Downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Nov 22, 2023
1 parent a761ba7 commit 5e1b2f2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private function collectUploadedFiles(array $solution_data, ilTestParticipantDat
$revision = $this->irss->manage()->getCurrentRevision(
$rid = $this->irss->manage()->find($file['value1'])
);
$streams[$revision->getTitle()] = $this->irss->consume()->stream($rid)->getStream();
$streams[$dir . $revision->getTitle()] = $this->irss->consume()->stream($rid)->getStream();
continue;
}

Expand All @@ -232,7 +232,7 @@ private function collectUploadedFiles(array $solution_data, ilTestParticipantDat
continue;
}

$streams[$file['value1']] = Streams::ofResource(fopen($legacy_file_path, 'rb'));
$streams[$dir . $file['value2']] = Streams::ofResource(fopen($legacy_file_path, 'rb'));
}
}
}
Expand Down Expand Up @@ -273,7 +273,7 @@ public function getFinalZipFilePath(): string
public function getDispoZipFileName(): string
{
return ilFileUtils::getASCIIFilename(
$this->test_title . '_' . $this->question->getTitle() . '.' . self::ZIP_FILE_EXTENSION
$this->test_title . '_' . $this->question->getTitle() . self::ZIP_FILE_EXTENSION
);
}

Expand Down

0 comments on commit 5e1b2f2

Please sign in to comment.